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.

Search
Categories
Read More
Shopping
Diamondbacks Outright Nabil Crismat
The D-Backs have sent reliever outright to Triple-A Reno, according to the at MLB.com. Hed been...
By Ebony Ortiz 2025-11-18 02:17:30 0 921
Games
New Journalism: Didion, Talese & Netflix Doc
Two literary giants, whose careers have sparked both acclaim and debate, are set for the Netflix...
By Xtameem Xtameem 2026-02-10 15:38:28 0 229
Games
The Lincoln Lawyer Season 3 – Women Lead On and Off Set
Dailyn Rodriguez, co-showrunner of The Lincoln Lawyer, noticed a significant shift on set during...
By Xtameem Xtameem 2025-11-11 00:17:44 0 1K
Games
Rosalia Genshin Impact : Guide complet – Astuces & builds
Guide de Rosalia dans Genshin Impact Depuis la mise à jour 1.4, Rosalia a su...
By Xtameem Xtameem 2025-11-13 02:38:48 0 976
Games
ILM VFX for 'Timeline' - Medieval Adventure Film
ILM Selected for Visual Effects on Paramount's "Timeline" Industrial Light & Magic has...
By Xtameem Xtameem 2025-12-27 01:00:47 0 529
Aldyra https://aldyra.com