Ubuntu: Upgrade FTP user to SFTP

0
24KB

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.

Search
Nach Verein filtern
Read More
Shopping
Celine fashion weeks around the globe is a key part
triple threat star will host the ceremony for the third year in a row honoring the finest...
Von Emilia Hurley 2024-10-03 06:20:45 0 3KB
Shopping
Saint Laurent Handbags tight there's only the three of them
In May 2001 Vogue reported on the issue Imitation is the sincerest form of flattery, not the...
Von Rayna Walters 2024-09-07 06:37:43 0 4KB
Shopping
suit moment she is a longtime face of Goyard Sale the label
After all, the amount of available options are wide, varied, and vast much like the fashion...
Von Mariah Rubio 2024-08-31 10:08:23 0 4KB
Shopping
the freshest of the season is Bottega Veneta Outlet a leather style that
The men week calendar might be smaller but it still features a total of shows and presentations...
Von Priscilla Gamble 2024-12-31 08:46:25 0 961
Shopping
sustainability requirements it Saint Laurent Outlet has implemented
I always get a little nervous packing my as the mere thought of them being crushed is enough to...
Von Priscilla Gamble 2025-01-12 05:09:34 0 910