Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Buscar
Categorías
Read More
Juegos
Encryption Debate: Matrix Secures Government Messaging
Encryption and Privacy Debate At a Matrix conference in Strasbourg last week, the conversation...
By Xtameem Xtameem 2025-10-31 05:19:33 0 18
Shopping
chunky heeled brown cowboy boots and a brown
I am team bag. I am also team multiple. And the prices are just right not so low that they...
By Marlee Ingram 2025-10-16 04:29:11 0 358
Juegos
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...
By Steve Org 2025-07-21 07:35:50 0 2K
Fitness
Bears introduce new consistent numbers
Related LinksHuge profession a gift that maintains on offering for BearsLunch with Larry: 2024...
By Gardner53 Gardner53 2025-08-21 02:45:12 0 1K
Other
Why Choose Fangda Steel Chisel for Your Next Project?
Every workshop or construction site requires tools that can withstand heavy tasks while...
By fang ciju 2025-09-22 03:17:40 0 708