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.

Pesquisar
Categorias
Leia Mais
Shopping
my go to c since they make me feel Dior less guilty eating pounds
It the way things don't at first glance look markedly different from the usual despite all the...
Por Remi Wells 2024-10-26 07:16:29 0 3K
Shopping
design costumes for the lead singers Golden Goose of indie bands
When you think of fashion the essentials for a day at the or the beach like and a pair of may...
Por Remi Wells 2024-10-23 18:16:10 0 3K
Shopping
Chiefs Super Bowl parade highlights Best moments as Patrick Mahomes Travis Kelce pledge to run it back
The Chiefs took their Super Bowl 57 celebration to downtown Kansas City on Wednesday, and what a...
Por Merl Treutel 2025-05-15 03:01:05 0 472
Shopping
My collection dates back Dior over a decade and spans
but we're in this for the long haul as well. Nestled between the majestic range is a city...
Por Remi Wells 2024-10-29 06:19:50 0 3K
Shopping
UCLAs Brett Hundley worked out for Dallas Cowboys
The , who haven't drafted a quarterback since 2009, could be in the market for one in this draft...
Por Merl Treutel 2025-05-15 02:34:26 0 432
Aldyra https://aldyra.com