Ubuntu: Upgrade FTP user to SFTP

0
26KB

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.

Rechercher
Catégories
Lire la suite
Shopping
the seven inaugural finalists of this first year of the Loewe vogue fashion
prepare yourself for funky fashion chunky and the best oversized you've ever seen. Just don't...
Par Remi Wells 2024-10-23 12:13:55 0 4KB
Crafts
Practices for Protecting Aluminum MIG Wire from Moisture
As fabrication shops upgrade for electric vehicle production and modular renewable energy...
Par Jason Robby 2025-07-30 09:42:12 0 1KB
Autre
there is something about Goyard the fall season that makes
As for what you can expect from her outfits to come? they're all a little more theatrical of...
Par Remi Wells 2024-10-29 09:48:42 0 3KB
Shopping
the number of Golden Goose brands that are co founded as
Cool and unflappable, he had a quiet stillness exemplified by the sound of his voice. based label...
Par Priscilla Gamble 2024-12-19 05:06:24 0 3KB
Shopping
Croatia Euro 2012 Croatia vs. Spain its crunch time for Croatia
Monday night will see the final games of Group C played out in Gdansk and Poznan, and as it...
Par Merl Treutel 2025-05-15 02:03:40 0 2KB
Aldyra https://aldyra.com