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.

Căutare
Categorii
Citeste mai mult
Networking
Golden Goose Matchstar Sneakers It was an extremely star
So with that, follow along throughout the NFL season as we chronicle every outfit wears to cheer...
By Margot Poole 2025-05-20 03:09:44 0 3K
Jocuri
Top Streaming Hits: Trending TV Shows This Week
Top Streaming Hits Streaming audiences this week pushed a mix of tense thrillers, haunting...
By Xtameem Xtameem 2025-10-29 03:11:16 0 615
Jocuri
Gremlins 3 Release Date – Cast, Plot & Franchise Return
The beloved horror-comedy franchise returns with Gremlins 3 officially slated for November 19,...
By Xtameem Xtameem 2025-11-09 01:08:38 0 520
Jocuri
Mega-Garados-EX Deck – Tipps & Strategien [2024]
Mega-Garados-EX Deck Tauche ein in die Welt des Pokémon-Sammelkartenspiels mit einem...
By Xtameem Xtameem 2025-11-08 03:11:32 0 505
Alte
China Smart Insulin Pens Market Size, Share & Forecast Analysis to 2030
China Smart Insulin Pens Market Size & Insights According to MarkNtel Advisors study...
By Rozy Desoza 2025-10-23 18:14:49 0 723
Aldyra https://aldyra.com