Ubuntu: Upgrade FTP user to SFTP

0
26K

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
So it Bottega Veneta Outlet important to focus on the essential items
with its high tasteful side boob display and sheer paneling was a more formal alter to the...
Por Priscilla Gamble 2025-01-14 04:20:45 0 2K
Music
Whatsapp +97433711266 cbd oil benefits
Whatsapp +97433711266 cbd oil benefits CBD oil Qatar, CBD oil Qatar online ,is cbd oil allowed in...
Por Mohammed Saad 2025-08-15 06:15:54 0 537
Networking
year when sales are just Saint Laurent Handbags popping up out
The Best Airport Outfits As it turns out, what you wear to the airport can actually lead to an...
Por Emily Crane 2024-07-16 06:51:13 0 8K
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...
Por Merl Treutel 2025-05-15 02:10:57 0 1K
Shopping
An early chance for Kane to justify Bundesliga move above Premier League riches
Although he never publicly stated it, Harry Kanes desire to leave Spurs in search of trophies at...
Por Merl Treutel 2025-05-15 02:22:42 0 1K