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
Oyunlar
Marvel Rivals Closed Beta: New Heroes Hinted
The closed beta phase for Marvel Rivals is currently active, offering players nearly two weeks...
By Xtameem Xtameem 2026-02-07 04:26:46 0 445
Other
Technological Advancements, Regulatory Support, and Hemp Industry Trends Push the Market Forward
The cultivation of CBD plants requires specialized nutrient solutions to improve plant health,...
By Tejas Kudale 2026-01-28 10:09:03 0 658
Oyunlar
Bum Kun Cha - FC 26 Icon Card Guide
Introduction About Bum Kun Cha Bum Kun Cha, born on May 22, 1953, in Busan, South Korea, is...
By Xtameem Xtameem 2025-12-19 14:01:43 0 616
Oyunlar
ACE Eddie Awards 2022: Film & TV Nominees
The 52nd ACE Eddie Awards have unveiled their contenders across film and television editing...
By Xtameem Xtameem 2025-12-22 02:22:29 0 596
Oyunlar
Call of Duty Mobile Review – Console Action on Phones
Call of Duty Mobile Review Currently, fans of the Call of Duty series are eagerly anticipating...
By Xtameem Xtameem 2025-10-31 02:24:15 0 1K