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
Games
Monopoly GO Free Dice Rolls – Tournament Rewards & Issues
Many players encountering issues during Monopoly GO's latest side tournament are being rewarded...
By Xtameem Xtameem 2025-12-27 11:28:34 0 511
Games
Zenless Zone: Eiselement-Set – Bonus & Tipps
Eiselement-Set in Zenless Zone Das Zenless Zone Null Polar Metall-Set wurde speziell für...
By Xtameem Xtameem 2026-01-15 07:58:04 0 396
Games
Gift Cards in Ghana: Popular Choices & Benefits
Popular Gift Cards in Ghana Are you an enthusiast of gift cards in Ghana? These digital assets...
By Xtameem Xtameem 2026-01-05 10:18:06 0 412
Health
ceramic cartridges THC website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
By Thcweed Express 2025-11-26 15:52:07 0 848
Games
Monster Hunter Outlanders — новая мобильная игра
Компания Capcom официально объявила о выходе новой игры Monster Hunter Outlanders, разработкой...
By Xtameem Xtameem 2025-11-04 02:13:29 0 1K
Aldyra https://aldyra.com