Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Games
Top Netflix Originals – Must-Watch New Releases
Top Netflix Originals You've earned this well-deserved break—unwind and indulge in...
By Xtameem Xtameem 2025-11-17 01:29:16 0 644
Other
Cervical Cancer Diagnostic Market Latest Trend, Growth, Size, Application & Forecast by 2031
The Cervical Cancer Diagnostic   Market research report has been crafted with the most...
By Janvi Mane 2025-12-04 12:25:15 0 513
Games
Zenless Zone Zero – Neues Hoyoverse-Spiel vorgestellt
Am 13. Mai 2022 gab das Entwicklerteam Hoyoverse die offizielle Bekanntgabe ihres neuesten...
By Xtameem Xtameem 2025-11-19 02:50:39 0 593
Shopping
One Dior Sale stylish guest paired the shoes with
Adornments, meanwhile, remain at a minimum, but double belt motif plays a significant role in the...
By Braelyn Arellano 2024-06-02 08:15:56 0 9K
Games
XO, Kitty Season 2 – Release Date & Trailer Revealed
Season 2 of XO, Kitty Announced Get ready, fans! The beloved spin-off from the "To All the Boys"...
By Xtameem Xtameem 2025-12-14 05:02:00 0 220
Aldyra https://aldyra.com