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.

Zoeken
Categorieën
Read More
Other
Construction and Energy Sectors Fuel Expansion of the Titanium Metal Market
Global demand for titanium metal is increasing rapidly as industries seek materials that combine...
By Ram Vasekar 2025-11-10 09:38:40 0 779
Other
there is something about Goyard the fall season that makes
As for what you can expect from her outfits to come? they're all a little more theatrical of...
By Remi Wells 2024-10-29 09:48:42 0 4K
Shopping
Red Sox vs. Marlins Prediction Odds Picks - July
The versus game on Thursday at 1:10 PM ET will feature a pair of hot hitters in Rafael Devers and...
By Ebony Ortiz 2025-11-18 01:49:49 0 538
Spellen
Digital Blackout in Tanzania: Election Impact Explained
Digital Blackout During Tanzania's Electoral Process: Understanding the Impact and Global...
By Xtameem Xtameem 2025-11-02 00:30:32 0 815
Spellen
Netflix Acquires Warner Bros. – Industry Reactions & Impact
The streaming landscape quakes as Netflix confirms its acquisition of Warner Bros., sending...
By Xtameem Xtameem 2025-12-07 02:33:49 0 299