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
Can Adhesive Tools Really Remove Deeply Embedded Pet Fur
Sticky lint rollers have dominated pet hair removal for decades, offering quick surface...
By Chloe Vincy 2026-03-09 08:45:21 0 562
Jocuri
Sabrina Series: Kiernan Shipka's Dark Role
A fresh face is set to bring a classic character to life in a chilling new way. Netflix has...
By Xtameem Xtameem 2026-02-16 08:42:00 0 403
Jocuri
Temporis Retro : Clôture et Bilan d'une Aventure
Clôture de Temporis Retro Le serveur Temporis sur Dofus Retro vient de fermer ses portes,...
By Xtameem Xtameem 2026-02-10 09:16:38 0 620
Shopping
Cubs To Select Shane Greene Recall Alexander Canari
The Cubs are set to select the contract of veteran right-hander from Triple-A Iowa, ESPNs Je se...
By Ebony Ortiz 2025-11-18 01:46:47 0 1K
Shopping
How Does Minidumperfactory Concrete Buggy Manufacturer Help Maintain Project Schedules
Concrete Buggy Manufacturer Manufacturer involvement often influences project timelines more than...
By Minidumperfactory minidumperfactory 2026-02-07 01:54:18 0 793
Aldyra https://aldyra.com