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.

Site içinde arama yapın
Kategoriler
Read More
Oyunlar
Marvel Rivals Skins: MCU Punisher Disappoints Fans
Marvel Rivals often struggles to impress with its new skins, with some releases delighting fans...
By Xtameem Xtameem 2025-11-07 03:08:30 0 905
Other
Software Market Outlook: Trends, Growth, and Opportunities
The Software Market Size continues expanding dramatically as organizations worldwide...
By Shraddha Nevase 2026-01-30 07:29:18 0 12
Other
XR Hardware Market : Trends, Forecast, and Competitive Landscape 2025 –2032
"Executive Summary XR Hardware Market Size and Share: Global Industry Snapshot CAGR...
By Data Bridge 2025-11-04 03:35:46 0 918
Oyunlar
Reaver 3.0 Valorant : Nouveaux skins et révélations
Une nouvelle version du pack emblématique Reaver pourrait bientôt voir le jour,...
By Xtameem Xtameem 2026-01-28 02:10:57 0 33
Oyunlar
Streaming Region Blocks: How VPNs Unlock Content
Overcoming Streaming Region Blocks Streaming platforms enforce geographic restrictions, locking...
By Xtameem Xtameem 2025-11-27 03:50:01 0 690