Ubuntu: Upgrade FTP user to SFTP

0
26χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Networking
The Chiefs are offering Clyde Edwards-Helaire further more than the league least
Every time the Kansas Metropolis Chiefs re signed totally free consultant managing again Clyde...
από Carter Nate 2025-08-02 03:21:35 0 474
Shopping
Describe the purpose of the ball valve assembly machine
Numerical control technology is an important foundation and key technology of machining...
από Aldyracom Aldyracom 2024-08-01 06:57:29 0 5χλμ.
άλλο
we took it Goyard upon ourselves to assist you by picking
She has zero memory of its provenance, no recollection of stealing it or of it being given to me....
από Remi Wells 2024-10-19 08:23:51 0 3χλμ.
Shopping
wore Christian Louboutin Shoes it again maybe a month later
I bought it the dress above from the Soho store and wore it twice don't remember the first...
από Matilda Leonard 2024-06-23 06:35:10 0 7χλμ.
Shopping
For Rodgers and Liverpool these are the toughest times
For Liverpool parallels to the 09/10 season are all too Cooper Kupp Jersey galling. For Suarez...
από Merl Treutel 2025-05-15 02:10:57 0 1χλμ.
Aldyra https://aldyra.com