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
Shopping
Hermes punctuated with a red rose lapel pin and silky
Call it a cooler, grungier take on dressing; the way of wearing the pattern is all about...
By Simone Andersen 2025-10-31 09:25:36 0 1K
Crafts
Efficient Safety Preparedness Through Trusted First Aid Kit Supplier Products
Choosing a dependable First Aid Kit Supplier is essential for ensuring safety and preparedness in...
By yonoel yonoel 2025-12-11 02:21:29 0 1K
Jocuri
Telegram CEO Rebukes Russian Restrictions—VPN Surge
The CEO of Telegram, Pavel Durov, has issued a firm rebuke against the Russian government's...
By Xtameem Xtameem 2026-02-13 23:29:02 0 457
Jocuri
MPL PH Season 7 Lower Bracket: Teams Face Elimination
Lower Bracket Showdown With less than a week remaining before the MPL – PH Season 7...
By Xtameem Xtameem 2026-02-11 14:36:23 0 394
Alte
The Influence of Regulatory Frameworks on the High Strength Concrete Market
The high strength concrete market is evolving rapidly as demand for advanced construction...
By Ram Vasekar 2025-09-10 10:32:07 0 2K
Aldyra https://aldyra.com