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.

البحث
الأقسام
إقرأ المزيد
Networking
High-Quality Human Hair Weave Bundles | Honest Hair Factory
Premium Human Hair Weave Bundles Experience Durability, Luster, and Natural Beauty from Honest...
بواسطة Shinnytime Shinnytime 2024-10-25 09:00:12 0 5كيلو بايت
الألعاب
Fortnite Party Up Winter Rush: Event Details & Rewards
Epic Games has announced an exciting new event set to arrive in Fortnite on November 19, titled...
بواسطة Xtameem Xtameem 2025-11-20 01:57:55 0 585
الألعاب
AFK Journey Marksmen – Top Strategies & Heroes
Top Marksmen Strategies In AFK Journey, marksmen are essential for delivering consistent...
بواسطة Xtameem Xtameem 2025-11-12 02:17:30 0 694
الرئيسية
Bovine-Based Collagen Market to Reach $2.71 Billion by 2033 — Advancing Biomedical Innovation
Market Overview The global bovine-based collagen for biomedical applications market size was...
بواسطة Mahesh Chavan 2025-11-04 07:25:53 0 1كيلو بايت
أخرى
Ferroalloys Market: Policy and Regulatory Influences
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
بواسطة Priya Singh 2025-09-18 15:29:52 0 1كيلو بايت