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
Отечественный аналог Call of Duty — поддержка РФ
Министерство цифрового развития Российской Федерации прокомментировало инициативу создания...
By Xtameem Xtameem 2026-01-21 01:16:57 0 476
Alte
Consumer Electronics Maintenance Market Gains From Cost Savings Trend
Rising digitalization has made consumer electronics essential in daily life, increasing reliance...
By Tejas Kudale 2026-03-04 10:14:26 0 336
Shopping
Start Em Sit Em Kickers for Week 1
Start 'Em & Sit 'Em is the ultimate look at the weekly NFL matchups and how they'll affect...
By Merl Treutel 2025-05-15 02:47:39 0 3K
Jocuri
Harry Potter Collectibles – Spin Master’s Magical Line
Magical Harry Potter Collectibles Prepare for a wave of miniature magic and plush enchantment....
By Xtameem Xtameem 2026-03-16 02:43:11 0 6
Jocuri
The Lincoln Lawyer Season 4 – Netflix Return Date
High-Stakes Season Return Netflix's "The Lincoln Lawyer" Returns with High-Stakes Fourth Season...
By Xtameem Xtameem 2026-01-11 06:15:54 0 484
Aldyra https://aldyra.com