Ubuntu: Upgrade FTP user to SFTP

0
28كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
أخرى
Keratin Market: Key Growth Factors, Revenue Analysis
Keratin is a naturally occurring fibrous protein that serves as the structural foundation...
بواسطة Ruhia Khan 2025-10-29 06:46:56 0 1كيلو بايت
أخرى
Supply Chain Innovations Driving Market Expansion Worldwide
Technology has become the cornerstone of modern logistics and supply chain management,...
بواسطة Allen Walter 2025-10-01 12:50:12 0 2كيلو بايت
الألعاب
Harry Potter and the Philosopher’s Stone Wins 30from30 Prize
A unique celebration of literary impact has unfolded at the British Book Awards. The inaugural...
بواسطة Xtameem Xtameem 2026-01-24 08:42:47 0 509
أخرى
Printed Burger Paper for Restaurants Focused on Quality Presentation
Burger miswrapping is not only unsanitary but also serves improperly. The restaurants and...
بواسطة Books Sss 2026-01-29 06:28:13 0 740
Shopping
Sterilization Self Sealing Pouch for Daily Handling Needs
In many preparation and processing settings, teams often refer to Sterilization Self Sealing...
بواسطة hua fufu 2025-11-24 03:19:39 0 1كيلو بايت