Ubuntu: Upgrade FTP user to SFTP

0
25KB

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
downtown cool like Hermes Bags Sale the designs spotted
If You are asking me leather weather is an every season type of thing but there nothing quite...
Par Genesis Nguyen 2025-07-13 04:40:58 0 142
Shopping
hither Bottega Veneta Handbags Sale textures and details including high
For resort was inspired by parties. It is about the after party becoming the main event he after...
Par Priscilla Gamble 2025-01-09 05:04:32 0 2KB
Networking
also made waves throughout Golden Goose Outlet her press tour
Much of the advice she offers focuses on how to accentuate and hide parts of the body avoiding...
Par Mariah Rubio 2024-08-22 09:38:47 0 5KB
Autre
12 Idées Simples De Collecte De Fonds Pour Les Refuges Pour Animaux
Croyez-le ou non, mais les animaux sont innocents, et ils méritent un espace de...
Par Gulshan Whydonate 2024-11-07 15:23:53 0 4KB
Religion
ASU Baseball: Late year collapse potential customers towards Sunlight Devils' loss of life
The Sunshine Devils experienced located them selves atop the Pac-12 convention, fending off the...
Par Carthy Carthy 2024-09-19 00:29:56 0 4KB