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
Jocuri
Call of Duty Mobile: Sixth Anniversary Update – New DMZ Mode
Call of Duty: Mobile's sixth anniversary season is set to revolutionize the gameplay experience...
By Xtameem Xtameem 2025-12-16 07:14:48 0 796
Networking
HDD Rockmaster Housings manufacturer Which is a good choice?
When choosing an HDD Rockmaster Housings manufacturer, you really need to consider a number...
By Aldyracom Aldyracom 2024-09-09 08:51:43 0 7K
Jocuri
Jeronimo: Mythic Warrior Overview - Whiteout Survival
Jeronimo: Mythic Warrior Overview Jeronimo's blade is a fusion of calculated precision and...
By Xtameem Xtameem 2026-02-13 06:14:47 0 446
Jocuri
MMO News Roundup: Dota 2 Breach & Weekly Updates
The world of massively multiplayer online games is constantly evolving, with new updates,...
By Xtameem Xtameem 2025-11-13 02:45:01 0 1K
Jocuri
FC 26 Icons – Legendary Players, SBCs & Upgrades
Introduction to FC 26 Icons FC 26 celebrates football legends by featuring 124 iconic retired...
By Xtameem Xtameem 2025-11-27 20:32:38 0 1K
Aldyra https://aldyra.com