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.

Cerca
Categorie
Leggi tutto
Giochi
Honkai: Star Rail Saber Crossover – Fate/stay night Leak
Recent whispers within the Honkai: Star Rail community suggest a tantalizing hint about an...
By Xtameem Xtameem 2025-12-19 10:01:59 0 238
Giochi
Why I Followed My First Streamer on Bigo Live
When I first opened Bigo Live, I was curious but skeptical. The app promised live entertainment...
By Steve Org 2025-12-11 06:23:40 0 439
Networking
High-Quality Human Hair Weave Bundles | Honest Hair Factory
Premium Human Hair Weave Bundles Experience Durability, Luster, and Natural Beauty from Honest...
By Shinnytime Shinnytime 2024-10-25 09:00:12 0 5K
Giochi
Monopoly GO Star Wars: Rebel Racers Guide & Tips
The collaboration between Monopoly GO and Star Wars introduces a new limited-time minigame...
By Xtameem Xtameem 2025-12-13 00:21:03 0 302
Giochi
Lubricant in Dune: Awakening – Production & Usage Guide
Lubricant Production and Usage Lubricant plays a vital role on the desert planet of Arrakis,...
By Xtameem Xtameem 2025-12-11 00:32:58 0 355
Aldyra https://aldyra.com