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
and spent time and Goyard money to test these firsthand
I listened to dozens of opinions from friends, sifted through hundreds of customer reviews, and...
By Sierra Cherry 2024-11-25 04:51:26 0 5K
Games
Netflix Comedy: Sandler & Rock Reunite in 'The Week Of
Netflix Comedy Stars Reunite: Sandler and Rock Join Forces for 'The Week Of' Comedy legends Adam...
By Xtameem Xtameem 2026-01-26 04:30:30 0 426
Games
Netflix Documentaries: Joan Didion Film Debuts
Netflix has announced the upcoming release of two captivating original documentaries set to...
By Xtameem Xtameem 2026-02-10 06:42:33 0 206
Games
Genshin Impact: Cultural Influences & Mythology Guide
Genshin Impact stands out not only for its stunning visuals, engaging combat, and memorable...
By Xtameem Xtameem 2026-01-03 04:02:35 0 520
Other
RNAi Therapeutics Market Overview, Industry Top Manufactures, Size, Growth rate by 2031
The RNAi Therapeutics Market research report has been crafted with the most advanced and best...
By Janvi Mane 2025-11-17 06:35:20 0 1K
Aldyra https://aldyra.com