Ubuntu: Upgrade FTP user to SFTP

0
26K

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
The Hottest Styles Golden Goose Sneakers Outlet
The Hottest Styles Golden Goose Sneakers Outlet https://www.goldensgoosesonsale.com
By Sienna King 2025-06-24 08:06:14 0 1K
Shopping
students receive tangible Golden Goose experiences and an of the
many of the faculty are industry veterans still working at high level roles within the fashion...
By Brylee Estrada 2025-07-23 11:39:43 0 956
Shopping
Chip Kelly addresses job rumors with Eagles players
For all the talk about Chip Kelly being cold and distant as a head coach, the last week has gone...
By Merl Treutel 2025-05-15 02:20:44 0 1K
Networking
also made waves throughout Golden Goose Outlet her press tour
Much of the advice she offers focuses on how to accentuate and hide parts of the body avoiding...
By Mariah Rubio 2024-08-22 09:38:47 0 5K
Networking
Secrets of legendary player Messi
Secrets of legendary player MessiLionel Messi's career is marked by incredible skill, precision,...
By Phoco Phocohanoi2 2025-02-20 07:26:32 0 2K
Aldyra https://aldyra.com