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
Other
Shifting Services in Delhi Airport Road Area
Home and office relocation services from reputed packers and movers in Paschim Vihar ease...
By Indian Cargo 2025-10-27 17:53:34 0 1K
Games
Pokémon TCG Pocket: Kostenlose Sanduhren sichern – Tipps
In der Pokémon TCG Pocket-App könnt ihr regelmäßig kostenlose...
By Xtameem Xtameem 2025-11-14 01:22:22 0 809
Literature
oil vape pen for weed online 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:51:22 0 847
Games
MLB The Show 25 – Hall of Fame Ryne Sandberg Card Guide
This week brought somber news for baseball enthusiasts as the legendary Ryne Sandberg, a beloved...
By Xtameem Xtameem 2026-01-29 03:37:18 0 124
Other
The $57.4 Billion Savings: Valuing the Tail Spend Management Solution Market
Projecting the future financial worth of an enterprise software and services market provides a...
By Harsh Roy 2025-11-11 10:02:11 0 1K
Aldyra https://aldyra.com