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.

Căutare
Categorii
Citeste mai mult
Jocuri
Dune Awakening Landsraad – Rewards, Vendors & Factions
In Dune Awakening, participating in the Landsraad activities is essential for gaining exclusive...
By Xtameem Xtameem 2025-11-08 00:24:06 0 1K
Film
Buy EU Passport for Global Opportunities
Buy EU Passport for Global Opportunities Dreaming of freedom to travel, work, and live anywhere...
By RUSEPH Jobclif 2025-05-24 21:49:04 0 3K
Shopping
downtown cool like Hermes Bags Sale the designs spotted
If You are asking me leather weather is an every season type of thing but there nothing quite...
By Genesis Nguyen 2025-07-13 04:40:58 0 3K
Alte
Anemia Drugs Market Size, Share & Forecast Analysis to 2030
Anemia Drugs Market Size & Insights According to MarkNtel Advisors study The future of...
By Rozy Desoza 2025-10-31 19:36:43 0 1K
Jocuri
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 344
Aldyra https://aldyra.com