Ubuntu: Upgrade FTP user to SFTP

0
28K

You might to upgrade an exitsing user to able to securely connect to server using SFTP (22) protocol instead of FTP (21). Before proeeding you might want to check if your current user has "ftp-user" privlidge or not.

In order to check that you can run the following command into the ubuntu server:

groups USER_NAME

If you see "ftp-user" in the output only then you should proceed further.

Moving forward, you can ssh into your server already using root user and open the following file:

/etc/ssh/sshd_config

At the end of the file, copy & paste the follwing code:

Match User user
    ForceCommand internal-sftp
    PasswordAuthentication yes
    PermitTunnel no
    AllowAgentForwarding no
    AllowTcpForwarding no
    X11Forwarding no

Replace user with the username from above. Finally, save the configuration and restart SSH service

sudo systemctl restart ssh

That is it! You can now log into server using port 22 on the same "user" and also be able to access the Filezilla securely.

Căutare
Categorii
Citeste mai mult
Jocuri
MLB The Show 25 Playoff Simulation: Surprising Results
For baseball enthusiasts, the postseason is the highlight of the year, where every hit, pitch,...
By Xtameem Xtameem 2025-12-11 01:34:57 0 756
Wellness
Smart Greenhouse Market Growth Outlook and Market Segmentation
Agriculture is currently undergoing its most significant transformation since the invention of...
By Riya Patil 2026-03-20 14:41:48 0 115
Alte
Polyester Filament Yarn Market: Understanding the Industry Landscape and Competitive Strategies
The polyester filament yarn market is witnessing strong growth as synthetic fibers continue to...
By Harshal J72 2026-01-15 13:34:53 0 890
Jocuri
Harry Potter Pins – Collectible Sets for Every House
The enchanting world of Harry Potter now offers a unique way for fans to showcase their...
By Xtameem Xtameem 2026-01-27 04:20:42 0 572
Jocuri
Shield Defense Science: Deep Analysis of Shield Refresh Mechanics and Drop Patterns
In the high-stakes environment of Monopoly GO, your buildings are constantly under threat from...
By Steve Org 2026-02-13 03:44:26 0 508
Aldyra https://aldyra.com