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
PUBG Mobile A16 Royale Pass – Release, Rewards & Skins
A16 Royale Pass Highlights Fans can anticipate the upcoming release of PUBG Mobile's A16 Royale...
By Xtameem Xtameem 2025-11-07 00:46:05 0 688
Alte
Projected Growth Trajectory of the Home Water Filtration Unit Market Through 2032
Households globally are increasingly recognizing the importance of clean, safe drinking water....
By Shubham Gurav 2025-11-26 06:45:23 0 496
Networking
Where To Buy caluanie muelear oxidize online usa
Caluanie Muelear Oxidize is a powerful chemical widely used in the metal industry for crushing...
By James Douk 2025-11-25 16:57:30 0 663
Shopping
Minor MLB Transactions 822 Minor MLB Transactions 822
Heres the latest on a trio of players who were recently designated for a signment. All...
By Ebony Ortiz 2025-11-18 02:10:21 0 474
Alte
Site Induction Video, Safety Training Near Me, and Safety Management: A Complete Guide
Workplace safety is no longer optional—it is a critical component of every...
By Interactivv Interactivv 2025-11-26 09:43:44 0 508
Aldyra https://aldyra.com