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.

Buscar
Categorías
Read More
Juegos
Streaming Content Updates: January 2026 Arrivals & Exits
Streaming Content Updates The streaming landscape constantly shifts, with titles flowing in and...
By Xtameem Xtameem 2026-01-05 00:27:05 0 129
Health
buy cannabis online Oregon website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
By Thcweed Express 2025-11-26 16:07:55 0 815
Networking
Industrial Valve Market Growth Supported by Industrial Vacuum Valves and Actuators Market Expansion
As Per Market Research Future, the Industrial Valve Market Growth is driven by the increasing...
By Mayuri Kathade 2026-01-06 10:44:15 0 123
Shopping
Antonio Brown-Kanye West relationship explained From Buccaneers to Donda Sports to Super Bowl suite
When Antonio Brown stripped off his jersey at MetLife Stadium, it was pretty clear his future of...
By Merl Treutel 2025-05-15 02:53:06 0 2K
Other
Investigating Current Innovation Drivers And Emerging Global Trends In Smart Home Market Trends
Keeping track of Smart Home Market Trends is essential for anyone looking to understand...
By Harsh Roy 2026-01-02 10:37:15 0 176
Aldyra https://aldyra.com