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
Games
Pokémon TCG Pocket: Fortgeschrittene Tutorials & Belohnungen
Bevor ihr in Pokémon TCG Pocket richtig loslegt, müsst ihr zunächst das...
By Xtameem Xtameem 2026-02-18 07:46:54 0 78
Games
Netflix VPN Guide: Access Global Libraries Easily
Accessing the complete selection of Netflix shows and movies often depends on your geographical...
By Xtameem Xtameem 2025-12-07 02:58:36 0 749
Other
Oleoresin Market : Trends, Analysis, and Competitive Landscape 2025 –2032
"Executive Summary Oleoresin Market Size and Share Forecast CAGR Value The global...
By Data Bridge 2025-11-03 06:08:03 0 1K
Games
Genshin Impact Columbina Release – Materials & Tips
Preparing for Columbina Release Preparations for Columbina’s arrival in Genshin Impact are...
By Xtameem Xtameem 2026-01-01 05:28:54 0 456
Other
Key Drivers Influencing the Ammonium Sulphate Market
Regional factors such as soil composition, crop patterns, and agricultural policies strongly...
By Ram Vasekar 2025-12-22 10:50:55 0 643
Aldyra https://aldyra.com