Ubuntu: Upgrade FTP user to SFTP

0
28K

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.

Site içinde arama yapın
Kategoriler
Read More
Networking
Emerging Trends Shaping the Future of the Life Sciences Software Market
  The Life Sciences Software Market trends are driving innovation across every aspect of...
By Sssd Ddssa 2025-10-13 04:05:01 0 1K
Oyunlar
Brawl Stars Update – Player Backlash Over Reward Changes
The recent update to Brawl Stars has sparked widespread dissatisfaction among its dedicated...
By Xtameem Xtameem 2025-12-03 03:07:40 0 703
Oyunlar
Monopoly GO Jawa Chase Guide – How to Catch Jawa
Scopely continues to expand Monopoly GO with fresh content, including themed collectibles,...
By Xtameem Xtameem 2025-11-08 01:32:48 0 1K
Shopping
Rongchuang Packaging Machine Integrations Support Versatile Product Handling
Revolutionizing Production Efficiency with Modern Equipment In today's fast-paced manufacturing...
By Kevin Lester 2025-09-12 03:19:55 0 2K
Other
Mechanical Mastery: The 2026 Evolution of Precision Gearbox Market Trends
The global landscape for Precision Gearbox Market Trends has reached a pivotal...
By Rupali Wankhede 2026-01-30 10:27:57 0 467
Aldyra https://aldyra.com