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
Health
Cholesterol Management Devices Market Data: Building a Foundation for Strategy
The Cholesterol Management Devices Market generates vast amounts of market data that serve as a...
By Divakar Kolhe 2025-09-26 09:20:10 0 1K
Shopping
the house artistic Golden Goose of couture and womenswear
In fact, quite the contrary. Supermodel of the moment stood out in her dress, which featured hand...
By Genesis Nguyen 2025-07-18 10:45:15 0 2K
Crafts
Kunliwelding ER4943: Stronger Aluminum Joints Possible?
Structural integrity remains paramount in fabricated aluminum assemblies, driving continuous...
By Jason Robby 2026-01-12 06:11:46 0 105
Games
Woodpecker Elektro – Hohe Angriffskraft für Agenten
Hohe Angriffskraft Der Woodpecker Elektro ist eine spezielle Antriebsscheibe, die darauf...
By Xtameem Xtameem 2026-01-01 01:56:52 0 164
Games
Gaming Industry Revenue 2025: Trends & Top Titles
According to a recent sales analysis by Newzoo for 2025, the gaming industry continues to...
By Xtameem Xtameem 2025-12-23 02:23:42 0 225
Aldyra https://aldyra.com