Ubuntu: Upgrade FTP user to SFTP

0
28K

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
WoW Classic: Season of Discovery - IGMeet Tips to Make Gold | Beginners' Guide
Gold holds significant importance in the Season of Discovery (SoD) in World of Warcraft. Many...
By igmeet wowsod 2024-01-25 02:51:00 0 17K
Other
Sustainability and Recycling Challenges in the Shape Memory Alloy Market
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
By Priya Singh 2025-11-03 02:45:57 0 1K
Other
Cell Line Development Market Report 2025 –2032 : Key Trends and Projections
"Future of Executive Summary Cell Line Development Market: Size and Share Dynamics CAGR...
By Data Bridge 2025-11-04 04:46:40 0 1K
Other
Luxury PVC Wallcovering Textures
In the luxury segment of interior finishes, where opulence and tactile sophistication drive...
By sean zhang 2025-12-30 05:55:53 0 797
Networking
Interior Design Transforming Residential and Commercial Spaces
The global industry of Interior Design continues to evolve rapidly as homeowners, businesses and...
By Deady Cnm 2025-11-11 06:06:39 0 1K
Aldyra https://aldyra.com