Ubuntu: Upgrade FTP user to SFTP

0
25χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Shopping
Bottega Veneta Handbags Outlet energy and public enterprises
There something magical and mezmerising about a very modern nude face so that what we did makeup...
από Priscilla Gamble 2024-12-29 09:29:05 0 1χλμ.
Shopping
opened with a performance by a Goyard vape artist who blew
And then there always is the key to everything I sound boring when I talk about it but I love...
από Remi Wells 2024-10-23 08:37:36 0 3χλμ.
Shopping
Several new NFL TV deals on track to be complete in early 2021 after major headway made before pandemic
There is great uncertainty throughout profe sional sports about the exact economic impact the...
από Merl Treutel 2025-05-15 02:41:46 0 404
Κεντρική Σελίδα
Application analysis of rdf pellet machine in garbage sorting scenario
rdf pellet machine is a kind of intelligent sorting equipment based on photoelectric principle,...
από Aldyracom Aldyracom 2024-11-11 07:42:35 0 3χλμ.
Shopping
Gallery Dept On Sale reached the pinnacle of method dressing
Add to that forthcoming country albums from Mrs. Trust us, you won't be disappointed! For another...
από Braelyn Arellano 2024-06-03 04:41:21 0 8χλμ.
Aldyra https://aldyra.com