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
Victoria Beckham's Transformation – A Style Evolution
Victoria Beckham's Transformation Victoria Beckham’s public life reads like a study in...
By Xtameem Xtameem 2025-10-31 00:26:56 0 702
Shopping
exploding gender and class Dior Bags On Sale signifiers as a way
is both Italian shoe company, so inspiration for the fun, colorful designs comes from both...
By Genesis Nguyen 2025-07-13 07:28:20 0 2K
Jocuri
Proton VPN—Infrastructure Upgrade Fueled by Discounts
Proton VPN's infrastructure upgrade springs from seasonal discounts This month's deployment of...
By Xtameem Xtameem 2025-11-24 01:33:50 0 249
Networking
Become millionaires and billionaires by monetizing virtual funds https://monitizationplatform.com/
https://monitization1.amoblog.com/become-millionaires-and-billionaires-by-monetizing-virtual-fund...
By monitizationplatform 2025-02-05 22:12:57 0 3K
Alte
Impact of Construction Industry Expansion on Carry Deck Crane Sales
The carry deck crane market share is emerging as a vital segment in the industrial equipment...
By Ram Vasekar 2025-09-22 11:21:48 0 1K
Aldyra https://aldyra.com