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.

Search
Categories
Read More
Other
a look especially in sprightly Celine shades of green or red
meaning it prime time to add transitional ladylike preppy barn and other lightweight silhouettes...
By Remi Wells 2024-10-20 14:54:33 0 5K
Games
FIFA Ultimate Team: Ratings Reload – Oscar Bobb im Fokus
EA SPORTS versuchte mit Ratings Reload, die Bewertungen im FIFA Ultimate Team nach dem Start der...
By Xtameem Xtameem 2025-11-04 04:18:47 0 655
Causes
Increase Productivity with Cenwanmachine’s Automatic Box Folder
In the world of packaging and manufacturing, efficiency and precision are paramount. The...
By cenwen cenwen 2025-11-18 03:14:13 0 954
Other
Comprehensive Study of the Cheese Market: Key Insights & Growth Outlook
The Global Cheese Market is a vibrant, growing sector driven by evolving consumer...
By Danny King 2025-10-16 14:15:23 0 1K
Crafts
How Moving Tooth Mechanisms Change The Feel Of Knot Removal Tools
Innovation in grooming tools coming from China has shifted how owners approach stubborn tangles...
By Chloe Vincy 2025-10-28 08:53:44 0 1K
Aldyra https://aldyra.com