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
Shopping
Popular Loro Piana Sneakers Sale
Popular Loro Piana Sneakers Sale Loropianassale.com
By Simone Andersen 2025-11-16 05:20:19 0 1K
Jocuri
Ключевые трансферы MLBB 2025: ТОП-5 изменений
Ключевые трансферы сезона В 2025 году трансферный период в Mobile Legends: Bang Bang стал...
By Xtameem Xtameem 2025-12-23 00:31:47 0 485
Jocuri
Harry Potter HBO Series: Radcliffe & Grint's Support
Dominic McLaughlin experienced overwhelming emotion upon receiving handwritten support from...
By Xtameem Xtameem 2025-12-02 00:49:00 0 699
Jocuri
Delta Force PC: Optimize Graphics Settings for Smooth Gameplay
Delta Force, developed with Unreal Engine 5 and currently in early access beta, delivers...
By Xtameem Xtameem 2026-01-21 08:13:10 0 405
Jocuri
Provocative Netflix Films: Sensual Stories
Provocative Films on Netflix Netflix offers a range of provocative films that skirt the edge of...
By Xtameem Xtameem 2026-01-19 05:59:28 0 362
Aldyra https://aldyra.com