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
Networking
year when sales are just Saint Laurent Handbags popping up out
The Best Airport Outfits As it turns out, what you wear to the airport can actually lead to an...
By Emily Crane 2024-07-16 06:51:13 0 8K
Shopping
The Lastest Golden Goose Shoes Store
The Lastest Golden Goose Shoes Store https://www.goldensgoosesonsale.com
By Jaliyah Mccullough 2025-06-10 07:00:33 0 1K
Shopping
requirements have been in place and Loewe others like fashion week
Highlights included the offering from bobby brower who showed fur trimmed parkas; couture...
By Henley Pierce 2024-11-18 06:48:22 0 3K
Shopping
A collection with a casual soul but a versatile
iconic pattern into the heart of Indian flora and fauna. Colors: 8 options Sizes: Full, Queen,...
By Emily Crane 2024-07-13 14:34:45 0 8K
Shopping
for pre-fall and fall winter are Hermes already upon us
I'm currently seated in a coffee shop in, typing on a laptop I pulled out of my beat up leather...
By Harmony Price 2024-11-05 10:52:56 0 4K
Aldyra https://aldyra.com