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
Other
Custom Cracker Boxes for Festive and Bulk Packaging Needs
Holiday gifts, retail promotions, and fancy treats are incomplete without custom cracker boxes....
By Books Sss 2026-01-29 08:14:16 0 848
Games
Delta Force – New Raptor Operator & War Ablaze Season
Team Jade has announced the addition of a new operator named Raptor to the Delta Force roster,...
By Xtameem Xtameem 2025-11-05 04:45:09 0 1K
Music
Forecasts Driving the Generative AI in Data Analytics Market
  The Generative AI in Data Analytics Market forecasts indicate strong expansion potential,...
By Sssd Ddssa 2025-09-24 10:04:39 0 2K
Games
The Night Agent Season 2 – Streaming Now on Netflix
Season 2 Overview The Night Agent is back in action, and this time, Peter Sutherland is calling...
By Xtameem Xtameem 2025-12-28 01:22:43 0 541
Crafts
Explore qhpreformmould Wide-Mouth Mould Supplier for Collaborative Ecosystems and Ongoing Advancement.
Wide-Mouth Mould Supplier delivers essential equipment for crafting containers featuring generous...
By qhpreform mould 2026-01-06 07:32:12 0 737
Aldyra https://aldyra.com