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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Παιχνίδια
Fan Club Levels 2.0: How Bigo Live Uses Exclusive Perks to Lock in Core Viewers
Bigo Live is more than just a streaming platform—it’s a dynamic ecosystem of...
από Steve Org 2025-07-21 07:35:50 0 3χλμ.
Παιχνίδια
Lan Yan – Maîtrise des éléments et arts qimen
Lan Yan: Originaire du paisible vallon de Chenyun, Lan Yan est une experte en rotin et...
από Xtameem Xtameem 2025-11-22 01:06:15 0 637
Networking
Ion exchange softeners Technology, Applications, and Market Demand
Ion exchange softeners are among the most widely adopted solutions for removing calcium and...
από Mayuri Kathade 2025-09-16 16:09:52 0 1χλμ.
άλλο
Sustainability Trends Shaping the Metal Adhesive Market
The metal adhesive market is transforming the way industries approach joining and bonding...
από Ram Vasekar 2025-09-10 11:00:41 0 1χλμ.
Παιχνίδια
It's What's Inside - Genre-Defying Horror on Netflix
Genre-Defying Horror Greg Jardin, the visionary behind the acclaimed Sundance film It’s...
από Xtameem Xtameem 2025-11-13 04:14:33 0 843
Aldyra https://aldyra.com