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.

البحث
الأقسام
إقرأ المزيد
Shopping
Bottega Veneta Handbags Outlet energy and public enterprises
There something magical and mezmerising about a very modern nude face so that what we did makeup...
بواسطة Priscilla Gamble 2024-12-29 09:29:05 0 2كيلو بايت
Dance
UConn womens basketball topples Georgetown, 85-44
UConn womens basketball stayed great inside meeting enjoy with a 85 41 victory more than...
بواسطة Bregman Alex 2024-10-09 08:55:52 0 4كيلو بايت
الألعاب
GTA 5 Online: Can You Make Money Drop?
 GTA's earlier versions allowed players to leave cash in the game for other players to pick...
بواسطة Some Cats 2025-04-07 06:00:01 0 2كيلو بايت
الألعاب
MMOWOW and Cheap BIGO Diamonds: Your Smartest Choice for Streaming Value
In the world of live streaming, BIGO Live stands out as a leading platform where millions of...
بواسطة Lin Xiao 2025-07-23 06:06:02 0 1كيلو بايت
الرئيسية
Winning Strategies for Cash or Crash: Maximize Your Chances
Cash or Crash is an exciting and fast-paced game that has gained popularity in recent years. With...
بواسطة Garnett Jakubowski 2024-11-08 17:04:42 0 3كيلو بايت