Ubuntu: Upgrade FTP user to SFTP

0
28K

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
Valorant VAN9005 Error – Quick Fixes & Solutions
Troubleshooting Valorant VAN9005 Encountering the VAN9005 error in Valorant can be frustrating,...
By Xtameem Xtameem 2025-11-26 02:23:37 0 799
Alte
Fleet Management Systems: Improving Efficiency, Safety, and Control
Efficient fleet management is essential for transportation, logistics, and delivery companies. A...
By Flotilla IoT 2026-01-05 12:18:40 0 583
Jocuri
Moral Boundaries: New Series Premieres April 2
A captivating new series delves into the complex boundaries between justice and corruption, set...
By Xtameem Xtameem 2026-02-01 03:29:38 0 208
Alte
Custom Butter Paper Solutions for Bakeries and Brands
Custom butter paper is a necessity to professionals bakers and companies that need to use it to...
By Books Sss 2026-01-29 06:05:36 0 358
Gardening
cannabis delivery Texas online website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
By Thcweed Express 2025-11-26 16:04:09 0 1K
Aldyra https://aldyra.com