Ubuntu: Upgrade FTP user to SFTP

0
26كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
Networking
Focused Bets, Bigger Wins: Master Over/Under 2.5 Now!
Focused Bets, Bigger Wins: Master Over/Under 2.5 Now! The Over/Under 2.5 goals bet is a popular...
بواسطة Nguyen Cuong 2025-01-17 01:46:49 0 2كيلو بايت
Shopping
The Sporting News 7 podcast March Madness stunner for Auburn Steve Kerr cries foul after Warriors loss
Travis D'Arnaud Jersey Miami stuns Auburn to reach Sweet 16, Steve Kerr calls foul over Warriors...
بواسطة Merl Treutel 2025-05-15 02:59:04 0 1كيلو بايت
Shopping
Loro Piana On Sale of the outdoors the joy of expression
Part of the attraction of the vintage gold jewelry community on Instagram is obviously the...
بواسطة Finley York 2025-08-08 10:21:25 0 304
Health
Whatsapp +97433711266 Buy THC and CBD Edibles, Vapes, and more ...
Whatsapp +97433711266 Buy THC and CBD Edibles, Vapes, and more ... CBD oil Qatar, CBD oil Qatar...
بواسطة Mohammed Saad 2025-08-15 06:19:21 0 13
Shopping
Odell Beckham Jr. boat picture revisited How Giants have fared since the infamous photo surfaced
Ship happens.Odell Beckham Jr.'s Giants days are well behind him, but a single image has followed...
بواسطة Merl Treutel 2025-05-15 02:30:00 0 1كيلو بايت
Aldyra https://aldyra.com