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
Jocuri
90s Sitcom Revival – New Episodes, Guest Stars & More
90s Sitcom Revival The beloved '90s-inspired sitcom is returning with fresh episodes, bringing...
By Xtameem Xtameem 2025-11-01 02:28:37 0 506
Shopping
LeVeon Bell says he wants the best for Jamal Adams but admits that he didnt like how Adams left the Jets
wants the best for , his teammate for one season in New York. Adams, a Pro Bowl safety for the...
By Merl Treutel 2025-05-15 02:20:15 0 2K
Jocuri
TOTW 7 FIFA 26 : Messi, Bellingham, Putellas briller
Lionel Messi, auteur d’un doublé lors du dernier match, semble être un...
By Xtameem Xtameem 2025-10-31 02:56:02 0 443
Shopping
Bottega Veneta poignantly the sole of her bears her signature
Fashion labels like giants like and smaller lines such as random Club have all built up their...
By Adalynn Cunningham 2025-07-24 07:20:20 0 2K
Shopping
8 players on the roster bubble ahead of Indianapolis Colts training camp
The are just over two weeks away from the start of training camp when several roster bubble...
By Merl Treutel 2025-05-15 02:52:36 0 2K
Aldyra https://aldyra.com