Ubuntu: Upgrade FTP user to SFTP

0
25كيلو بايت

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
bubblegum button up Prada Shoes Outlet in a sumptuous silk
wanted to create a collection dedicated to holiday dressing and a time of year where no expense...
بواسطة Sienna King 2025-06-20 10:12:19 0 561
Causes
The Latest Styles Miu Miu Sale
The Latest Styles Miu Miu Sale https://www.miumiusshoes.com
بواسطة Kailani Robles 2025-06-18 06:56:26 0 591
أخرى
Lettre De Don Pour L’Église: 6 Meilleurs Conseils Pour Sa Rédaction
Demander des dons peut parfois être assez inconfortable, même lorsque tu...
بواسطة Gulshan Whydonate 2024-11-07 12:21:04 0 4كيلو بايت
Shopping
special sale Golden Goose Sale to celebrate their 10 years
It should be said that this look, like its cousins 鈥?0s and in sleaze, is the jurisdiction of the...
بواسطة Matilda Leonard 2024-06-23 05:24:36 0 6كيلو بايت
Shopping
Golden Goose author of Why do not have Anything to Wear
Goldensgoosesonsale.com felt powerful, like could start mansplaining about something do not know...
بواسطة Amaris Rush 2025-05-26 08:42:56 0 939