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
The Role of Type C Bulk Bags in Hazardous Material Handling
Handling bulk powders and sensitive materials safely has become a priority in modern industries,...
By Ram Vasekar 2025-09-29 11:32:06 0 1K
Shopping
Hermes Handbags Outlet 2025 June Most Wanted Collections
Hermes Handbags Outlet 2025 June Most Wanted Collections
By Remy Newton 2025-06-29 08:16:07 0 2K
Other
Why Choose Yuanda Automatic Sliding Doors for High-Traffic Areas?
Automatic Sliding Doors from yd-purification provide innovative solutions for modern industrial...
By tion puri 2025-09-19 02:53:05 0 1K
Health
Medical Equipment Maintenance & Repair Market Forecast 2030: Growth Trends, Key Players & Future Outlook | MarkNtel
As per MarkNtel Advisors Medical equipment is used to assess patients' health precisely by...
By John Ryan 2025-11-05 10:36:48 0 749
Other
Satellite NTN for Fire Fighting Ops Market to Revolutionize Emergency Response with Space-Based Connectivity, Says Research Intelo
The Satellite NTN for Fire Fighting Ops Market is witnessing remarkable growth as global...
By Caitan Cruz 2025-10-30 12:12:39 0 790
Aldyra https://aldyra.com