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
Alte
SGLT2 Inhibitors Market Size, Share & Forecast Analysis to 2030
SGLT2 Inhibitors Market Size & Insights According to MarkNtel Advisors study The future...
By Rozy Desoza 2025-10-31 19:54:29 0 743
Shopping
my go to c since they make me feel Dior less guilty eating pounds
It the way things don't at first glance look markedly different from the usual despite all the...
By Remi Wells 2024-10-26 07:16:29 0 4K
Alte
Are YD Pass Through Boxes Revolutionizing Material Transfer
In modern cleanroom operations, maintaining sterile separation while enabling efficient transfer...
By tion puri 2025-11-07 02:28:44 0 702
Alte
Sunday Standings: The Thanksgiving milestone
It turn out to be a preferred stat of hockey writers and broadcasters in direction of actuality...
By Manley Earnests 2025-09-22 03:47:26 0 1K
Jocuri
Call of Duty: Legends of War — новый трейлер и детали
Компания Activision представила новый официальный трейлер мобильной игры Call of Duty: Legends of...
By Xtameem Xtameem 2025-11-12 01:53:50 0 495
Aldyra https://aldyra.com