Ubuntu: Upgrade FTP user to SFTP

0
27كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
أخرى
Can a Hole Saw Cutter Handle Your Task Needs?
In construction sites, workshops, and home renovation settings, users regularly rely on tools...
بواسطة tools fang 2025-11-24 06:25:44 0 834
Networking
FourPro Studio: Elevating Brands Through Innovative Digital Design
In an era where digital presence defines brand perception, fourpro...
بواسطة A1j International 2025-05-17 08:41:03 0 3كيلو بايت
الألعاب
Alliance Activity Triumph – Earn More Alliance Tokens Fast
Alliance Activity System On March 3, 2025, a fresh feature called Alliance Activity Triumph was...
بواسطة Xtameem Xtameem 2026-01-01 08:22:39 0 158
الألعاب
Cursed Child Transformation: Lightning Bolt Redesign
Transformation in Stage Design The Electrifying Transformation: Cursed Child Embraces Its...
بواسطة Xtameem Xtameem 2025-11-15 00:23:56 0 669
أخرى
Frusemide Market : Insights, Key Players, and Growth Analysis 2025 –2032
 Executive Summary: Frusemide Market Size and Share by Application &...
بواسطة Data Bridge 2025-10-30 11:18:04 0 897
Aldyra https://aldyra.com