Ubuntu: Upgrade FTP user to SFTP

0
25K

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.

Site içinde arama yapın
Kategoriler
Read More
Shopping
the cloth and the conditions under which it Valentino Bags was steeped
the best part? All the wardrobe-building fall essentials are available on ready to ship to you in...
By Priscilla Gamble 2025-01-12 09:40:00 0 2K
Shopping
presence in last Gucci year collections they're now decidedly
The biggest challenge is educating people on why our clothes are worth it compared to fast...
By Priscilla Gamble 2024-12-02 11:23:31 0 2K
Shopping
Dior Handbags easily be dressed up with a kitten heel or down
To say that women's basketball is in the midst of a cultural boom would be a vast understatement....
By Rayna Walters 2024-09-06 14:39:34 0 5K
Shopping
a head to toe purple ensemble Saint Laurent from spring 2024 collection
For the mono challenge slipped into a head to toe purple ensemble Saint Laurent from spring 2024...
By Remi Wells 2024-10-21 12:16:09 0 3K
Shopping
screening in Miami she Chloe wore a bold coral mini affixed with
Flushing red with pain, didn't make a sound; rather, he lifted it back up. Keep going, he...
By Sierra Cherry 2024-11-30 11:08:53 0 2K