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
Games
Diablo IV Season of Infernal Chaos – Patch 2.4.0 Updates
Get ready for the fiery chaos in Diablo IV's Season of Infernal Chaos, launching on September...
By Xtameem Xtameem 2025-11-25 01:36:53 0 359
Games
AFK Journey Pack Recommendations – Best Value Guide
Optimal Pack Recommendations AFK Journey stands out as an engaging idle RPG, featuring...
By Xtameem Xtameem 2025-11-19 01:49:02 0 447
Other
Investment Opportunities in the Nordic Plastic Packaging Film Sector
The Nordic plastic packaging film market is experiencing dynamic growth driven by regulatory...
By Ram Vasekar 2025-09-10 11:22:44 0 1K
Games
Missouri VPN Searches Surge—Age Verification Impact
Missouri VPN Searches Surge Following Age Verification Requirements Internet privacy concerns...
By Xtameem Xtameem 2025-12-03 01:52:27 0 175
Networking
Building Climate Control Equipment Advanced Technologies Ensuring Comfort Energy Efficiency and Safety
As Per Market Research Future, building climate control equipment plays a crucial role in...
By Mayuri Kathade 2025-11-17 10:35:37 0 643
Aldyra https://aldyra.com