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.

Căutare
Categorii
Citeste mai mult
Alte
Thin Client Market Growth: Revolutionizing Enterprise Computing
...
By Kajal Jadhav 2026-03-13 09:13:53 0 323
Alte
Poultry Processing Equipment Market Demand & Growth Outlook in North America (2025–2035)
"Executive Summary Poultry Processing Equipment Market Size and Share Analysis Report...
By Danny King 2025-10-10 09:35:14 0 2K
Alte
Powering Resilience: The Strategic Catalysts of Recloser Market Growth
The global energy landscape of 2026 is defined by a shift from rigid, centralized power...
By Rupali Wankhede 2026-02-13 10:41:14 0 554
Jocuri
Netflix's 'Puerta 7' - Argentine Soccer Drama
Netflix, a global leader in digital entertainment, has announced its upcoming slate of original...
By Xtameem Xtameem 2026-02-28 10:59:59 0 325
Jocuri
Season 3 Off-Season Activities – Celebration Guide
Season 3 Off-Season Activities As Season 3 – Golden Kingdom concludes, the game transitions...
By Xtameem Xtameem 2026-03-17 14:32:28 0 107
Aldyra https://aldyra.com