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.

Cerca
Categorie
Leggi tutto
Altre informazioni
outfit and the other Loewe one is the polka dot one of the final pieces
As for hints on what will wear for weekend two? you'll just have to wait and see. collection was...
By Remi Wells 2024-10-19 13:54:56 0 3K
Altre informazioni
become millionaires and billionaires by monetizing virtual funds https://monitizationplatform.com/
We Monetize Virtual Funds and pay directly to your personal wallet no fees Monetize Virtual...
By Monitization Platform 2024-08-19 21:04:33 1 6K
Giochi
GTA 5 Online: Can You Make Money Drop?
 GTA's earlier versions allowed players to leave cash in the game for other players to pick...
By Some Cats 2025-04-07 06:00:01 0 930
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
Networking
JaguarsTrevor Lawrence and Foye Oluokun satisfy with media pre-NFL Draft
With the NFL Draft instant upcoming, the Jacksonville Jaguars' voluntary offseason software...
By Staubach Mcgriffs 2024-09-20 01:06:50 0 4K
Aldyra https://aldyra.com