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.

Search
Categories
Read More
Shopping
Buy Valentine Day Shirts for Boys from Leather Jacket Black: A Perfect Gift for Your Loved One
Valentine's Day is just around the corner, and if you're looking for a unique gift for the...
By Mark Johnson 2024-12-27 12:30:13 0 1K
Party
Nick Lodolo normally takes the mound as the Reds host the Angels inside
of GoodyearNick Lodolo is prepped and well prepared for a 5+ WAR period. He's completed his...
By Stadion Nieuw 2024-03-09 08:39:16 0 11K
Home
rubber refiner machine The use of the board
rubber refiner machine Board is a rubber material with special anti-static properties. It is...
By Aldyracom Aldyracom 2024-05-21 02:29:20 0 7K
Shopping
Not to the comments other Goyard Outlet people might make
isn't afraid of experimenting with gendered clothing either. After the launch of in as fashion...
By Rayna Walters 2024-09-12 08:32:19 0 5K
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...
By Mariah Rubio 2024-08-22 09:38:47 0 4K
Aldyra https://aldyra.com