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
Crafts
Why Do Kidneys Need Constant Hydration Support
Kidney function relies heavily on consistent hydration to filter waste products and maintain...
By Chloe Vincy 2026-02-10 10:23:31 0 82
Jocuri
David Brent Film - Netflix Exclusive & Theatrical Release
The iconic David Brent character, created by Ricky Gervais, is embarking on a cinematic...
By Xtameem Xtameem 2026-01-20 01:19:41 0 399
Alte
What to Check Before You Pick Up Your Self-Drive Car in Delhi
Delhi is home to a wealth of incredible attractions, including heritage monuments, gardens, and...
By Veekay Cabs 2026-01-17 16:55:56 0 464
Jocuri
Joel Tenenbaum Trial - File-Sharing Clash in Court
The courtroom witnessed a clash of perspectives on Tuesday as Joel Tenenbaum's file-sharing trial...
By Xtameem Xtameem 2025-12-17 02:17:55 0 503
Crafts
Choosing the Right Combat Military First Aid Kit Factory
In critical situations, such as military operations or outdoor adventures, having a well-equipped...
By yonoel yonoel 2025-12-25 03:18:32 0 606
Aldyra https://aldyra.com