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
Shopping
Banned Yankees fan who interfered with Mookie Betts received package of poop hate voicemails in ugly fallout
One of the Yankees fans who said hes ready for his infamous moment to be behind him, saying in a...
By Merl Treutel 2025-10-26 04:36:15 0 973
Health
Investigating the Vinyl Gloves Market Share and Competitive Strategies
The Vinyl Gloves Market Share is increasingly concentrated among key global and regional players...
By Divakar Kolhe 2025-10-27 10:49:52 0 1K
Health
Whatsapp +97433711266 where to buy #weed #marijuana #kush in #Riyadh KSA
Whatsapp +97433711266 where to buy #weed #marijuana #kush in #Riyadh KSA CBD oil Qatar, CBD oil...
By Mohammed Saad 2025-08-15 05:57:37 0 2K
Alte
One-Stop Hotel Marketing Management Market Latest Trend, Growth, Size, Application & Forecast by 2031
The One-Stop Hotel Marketing Management Market research report has been crafted with the most...
By Janvi Mane 2025-11-14 06:46:54 0 722
Jocuri
Student VPN Deals – Affordable Surfshark Discounts
Affordable Student VPN Deals Protect every device affordably with Surfshark VPN using exclusive...
By Xtameem Xtameem 2025-12-16 05:18:52 0 109
Aldyra https://aldyra.com