Ubuntu: Upgrade FTP user to SFTP

0
26K

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
Registrierten Führerschein Kaufen
https://www.drivingpermits.de/ Führerschein kaufen. Wir bieten absolut alle...
By RUSEPH Jobclif 2025-05-24 21:50:49 0 2K
Other
the short story by that inspired the Gallery Dept dress code
They used to be watchers of fashion, but now they are players it a new movement in the...
By Lucille Stanton 2024-06-08 11:49:21 0 8K
Sports
Reacts Study accomplishment: Jaguars lovers voice reviews upon Travis Hunter
This 7 days, we requested Jacksonville Jaguars lovers if they'd exchange up for Travis Hunter...
By Miami Dolphins 2025-07-18 08:32:26 0 974
Shopping
in on the fun we dug Hermes the best early aughts trends from what
It's my story that he was in. While almost every woman outlines the importance of breathing room...
By Henley Pierce 2024-11-12 05:52:58 0 4K
Fitness
New Arrival Selections Miu Miu Outlet 2025 June
New Arrival Selections Miu Miu Outlet 2025 June https://www.miumiusshoes.com
By Sienna King 2025-06-26 09:30:40 0 1K