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.

Site içinde arama yapın
Kategoriler
Read More
Shopping
The Premier Leagues attacking trio Manchester Uniteds RVP Rooney and Hernandez
If you Yordan Alvarez Jersey think of a striking combination you always think of the partnerships...
By Merl Treutel 2025-05-15 02:47:10 0 433
Shopping
senior video producer Saint Laurent Handbag Sale Book your treatment here
In 2008, Ben-Ishay began selling cupcakes out of her New York City apartment and hand-delivering...
By Emilia Dean 2024-03-29 08:27:55 0 11K
Other
the short story by that inspired the Gallery Dept dress code
They used to be watchers of fashion, but now they are players it a new movement in the...
By Lucille Stanton 2024-06-08 11:49:21 0 7K
Oyunlar
Arizona Sunshine Remake: Survive the Zombie Apocalypse in VR
Arizona Sunshine Remake revitalizes the acclaimed VR zombie shooter, transporting players into a...
By Rodeoneerer Rodeoneerer 2024-10-29 08:25:21 0 3K
Shopping
Hermes Handbags luxury outerwear brand mackage
Keeping in mind how hard it can be to shop for chic s, we also asked to share her gift...
By Priscilla Gamble 2025-01-17 05:10:48 0 1K
Aldyra https://aldyra.com