Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Jocuri
Berlin on Netflix: Stream Anywhere with VPN Tips
Discovering the origins of Berlin unfolds exclusively on Netflix. This prequel centers on Pedro...
By Xtameem Xtameem 2025-11-14 02:43:52 0 190
Jocuri
Scoop Emmy Nomination: Royal Interview Drama
Royal Interview Behind the Scenes Scoop just earned an Emmy nomination for Outstanding Television...
By Xtameem Xtameem 2025-11-02 05:10:49 0 372
Health
How Does Fenbendazole Work?
Fenbendazole is a broad-spectrum anthelmintic (anti-parasitic) medication commonly used in...
By James971 James 2025-11-10 11:20:06 0 320
Jocuri
Free VPN Extension Risks – Privacy Concerns Rise
A potentially harmful free VPN extension has reappeared on the Chrome Web Store, attracting over...
By Xtameem Xtameem 2025-11-21 02:47:31 0 45
Jocuri
MLB The Show 25 Team Affinity: Maximize Progress Fast
Maximizing Team Affinity Progress Building a strong roster in MLB The Show 25 involves strategic...
By Xtameem Xtameem 2025-11-11 02:31:44 0 236
Aldyra https://aldyra.com