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
Alte
How to Track Order Delivery Time and Performance of An SMM Panel
In the fast-paced world of social media marketing, growth often depends on timely and...
By Growfollows Official 2025-10-06 09:18:51 0 2K
Alte
Property Inspection Companies
Property Inspection Companies | Trusted & Certified Experts Buying or investing in a property...
By Zia Luxury Property Observe 2026-01-22 10:13:08 0 861
Jocuri
Ms. Rachel on Netflix: Kids' Educational Fun
Come sing and play with the beloved Ms. Rachel, now streaming in a special collection on...
By Xtameem Xtameem 2025-12-29 01:27:33 0 568
Shopping
Narciso Rodriguez for her 女性淡香水-優雅氣息的現代女性必備香氛
在香水界中,Narciso Rodriguez 是備受推崇的品牌,而其經典之作「Narciso Rodriguez for her...
By Kai Song 2025-09-30 07:11:01 0 2K
Jocuri
PUBG: обновление 4 февраля - новые тактики
Разработчики PUBG: Battlegrounds подготовили новое обновление, которое появится для ПК уже 4...
By Xtameem Xtameem 2026-02-04 04:39:24 0 452
Aldyra https://aldyra.com