Ubuntu: Upgrade FTP user to SFTP

0
27χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
άλλο
Global Drone No-Fly Zone Audit Trails Market Size, Trends, Growth Drivers, and Forecast | Research Intelo
The global Drone No-Fly Zone Audit Trails Market is witnessing accelerated growth as the world...
από Caitan Cruz 2025-11-14 08:24:24 0 862
Παιχνίδια
Dofus Unity Bijoutier : Guide XP jusqu'au niveau 200
Atteindre le niveau 200 en tant que bijoutier dans Dofus Unity représente un...
από Xtameem Xtameem 2025-11-19 07:57:29 0 553
Παιχνίδια
Religious Leader Scam – How to Spot & Avoid Fraud
A new type of scam targeting worshipers has emerged, involving imposters posing as religious...
από Xtameem Xtameem 2025-11-26 19:28:23 0 485
άλλο
How to Handle Last Minute Shifting in Raipur
Relocating to a new place can be daunting. However, with the right assistance, it can be made...
από Sspacker Mover 2025-10-27 10:00:13 0 1χλμ.
Παιχνίδια
Marvel Rivals Season 5 – Rogue & Gambit Revealed
Season 5 Announcement Netease has unveiled exciting news for Marvel Rivals enthusiasts,...
από Xtameem Xtameem 2025-11-11 00:16:21 0 674