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.

Search
Categories
Read More
Home
Soft or Crunchy? Hg-machine’s Biscuit Line Covers It All
For any bakery looking to expand its biscuit range, a full soft & hard biscuit production...
By melody max 2025-06-27 06:38:31 0 3K
Games
Arsenal FC 26 Rating Predictions - Key Upgrades & Insights
Introduction to Arsenal FC 26 Rating Predictions Let’s dive into the latest set of rating...
By Xtameem Xtameem 2025-12-24 15:02:29 0 631
Games
Kolizéum Dofus : Saison 14 – Nouveautés PvP
Dès le mardi 29 mars, la saison 14 de Kolizéum sera lancée sur Dofus,...
By Xtameem Xtameem 2025-12-30 01:35:58 0 513
Games
Dofus 3.2 – Nouveautés, patch 2.45 et Gamakna #4
Nouveautés et Événements Une première vidéo...
By Xtameem Xtameem 2025-12-10 01:23:44 0 676
Games
Netflix VP Melissa Cobb: Kids & Family Content Lead
Melissa Cobb has taken on a new role at Netflix, the premier global streaming platform, stepping...
By Xtameem Xtameem 2026-02-10 01:57:04 0 378