Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Căutare
Categorii
Citeste mai mult
Shopping
Top 50 Sounds 50-41 Top 50 Sounds 50-41
Sound represents the very e sence of the NFL, and nobody understands that better than Bose. As we...
By Merl Treutel 2025-05-15 02:14:49 0 2K
Jocuri
Harry Potter and the Cursed Child – SF Preview Events
San Francisco Welcomes "Harry Potter and the Cursed Child" with Special House-Themed Preview...
By Xtameem Xtameem 2025-11-19 01:56:28 0 385
Alte
What to Check before Booking a Tempo Traveller in Delhi
A Tempo Traveller on rent Delhi is a comfortable and affordable way to tour Delhi and beyond....
By Veekay Cabs Tempo 2025-11-22 17:46:27 0 422
Jocuri
Homeland on Netflix: Claire Danes Shines in Spy Thriller
Looking for a compelling new series to dive into after finishing The Beast in Me? Netflix has...
By Xtameem Xtameem 2025-11-23 00:56:55 0 319
Jocuri
Visual Effects Oscar Race: 7 Films Advance
Seven Films Advance in Visual Effects Oscar Race The Academy has narrowed down the contenders for...
By Xtameem Xtameem 2025-11-25 02:18:24 0 312
Aldyra https://aldyra.com