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.

البحث
الأقسام
إقرأ المزيد
الألعاب
Counter Lolita in Mobile Legends: Key Strategies
Lolita Counter Strategies In Mobile Legends, Lolita has established herself as a formidable...
بواسطة Xtameem Xtameem 2025-12-30 02:44:12 0 423
أخرى
Corporate Reward Trips Insights in Incentive Travel Market competitive landscape
In today’s competitive corporate environment, incentive travel has become an essential tool...
بواسطة Tejas Kudale 2025-12-16 12:59:45 0 668
الألعاب
Best VPNs for Netflix – Top Picks for Streaming Abroad
Best VPNs for Netflix Access Struggling to stream familiar Netflix content while traveling...
بواسطة Xtameem Xtameem 2025-11-28 05:01:28 0 824
الرئيسية
Market Dynamics Shaping the Continuous Manufacturing in Pharma Market
For decades, the pharmaceutical industry operated on a "stop-and-go" basis. Known as batch...
بواسطة Riya Patil 2026-02-18 12:20:27 0 126
الألعاب
Netflix Acquisition: EU Antitrust Risks & Outlook
Antitrust specialists monitoring the European Union foresee minimal risk of regulators halting...
بواسطة Xtameem Xtameem 2025-12-10 00:43:58 0 649
Aldyra https://aldyra.com