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
Games
Religious Leader Scam – How to Spot & Avoid Fraud
A new type of scam targeting worshipers has emerged, involving imposters posing as religious...
By Xtameem Xtameem 2025-11-26 19:28:23 0 830
Games
Anarchy Online: 25 Years of Sci-Fi MMORPG Legacy
Over the years, the MMORPG landscape has undergone significant evolution, with numerous new...
By Xtameem Xtameem 2026-01-29 10:51:05 0 348
Games
Marvel Rivals – Thor & Jeff Join Closed Beta Roster
Thor Odinson and Jeff the Land Shark are set to join the roster of playable fighters in Marvel...
By Xtameem Xtameem 2026-02-14 04:53:22 0 58
Games
Bruno Counter Strategies – Beat Bruno in Mobile Legends
Counter Strategies Against Bruno When facing Bruno in Mobile Legends: Bang Bang, players often...
By Xtameem Xtameem 2025-11-25 03:24:18 0 848
Crafts
How does aluminum braided wire handle dynamic environments?
When choosing materials for critical applications, flexibility often becomes one of the most...
By Jason Robby 2025-12-22 07:40:30 0 677
Aldyra https://aldyra.com