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
Alte
Large-Scale Utility Boiler Upgrades Market & Outlook
Large-Scale Utility Boiler Upgrades - Covers retrofitting and modernization of utility boiler...
By Rupali Wankhede 2025-09-23 17:40:55 0 1K
Jocuri
Festive Streaming Highlights – Top Holiday Picks 2024
Festive Streaming Highlights The holiday season is upon us, bringing with it the comforting...
By Xtameem Xtameem 2025-11-24 01:34:20 0 833
Dance
Workplace Safety Enhanced with Din13164 First Aid Kit by YONOEL
Ensuring workplace safety and rapid medical response starts with a reliable Din13164 First Aid...
By yonoel yonoel 2026-01-23 03:13:20 0 582
Jocuri
Last War: Survival Game Modes – Ultimate Guide
Game Modes Overview Embark on your journey through the diverse game modes of Last War: Survival...
By Xtameem Xtameem 2025-10-30 02:11:10 0 1K
Jocuri
A Complete Guide to Sports Betting in Australia
Sports betting has become a major part of Australia’s sporting culture, blending passion...
By My Betting Mate 2026-02-13 04:31:59 0 351
Aldyra https://aldyra.com