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
Networking
Challenges in Installing and Maintaining China Fencing
The China Fencing is a rapidly growing sector within the country’s construction...
By Deady Cnm 2025-09-26 06:55:53 0 732
Games
MacroMicro Making Global Macroeconomic Trends Understandable for Everyone
In today’s complex financial world, staying ahead of macroeconomic trends is crucial for...
By Katharineee Katharineee 2025-06-09 06:49:09 0 2K
Games
New TV Drama Cast Announced – Stars & Plot Revealed
New TV Drama Cast Announced Molly Windsor and Asa Butterfield have been tapped to headline a new...
By Xtameem Xtameem 2025-11-03 04:24:07 0 187
Shopping
Cam Akers didnt expect to have limited role in Rams opener Im going to learn from it
Cam Akers had one of the most disappointing outings of his career in Week 1 of the 2022 NFL...
By Merl Treutel 2025-05-15 02:06:35 0 2K
Games
Top VPNs for TikTok 2025 – Secure Access Guide
Top VPNs for TikTok 2025 Navigating TikTok Securely in 2025: Top VPN Solutions With TikTok...
By Xtameem Xtameem 2025-10-30 00:16:15 0 239
Aldyra https://aldyra.com