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
Sex Education: Netflix's Teen Dramedy Series
In a groundbreaking move for teen-focused content, Netflix has announced the production of "Sex...
By Xtameem Xtameem 2026-02-13 18:10:40 0 280
Games
Harlan Coben’s Run Away – Netflix Thriller Unveiled
The relentless pace of Harlan Coben’s Netflix adaptations continues with the release of the...
By Xtameem Xtameem 2025-12-26 00:28:32 0 463
Other
CNC machining tools Driving Accuracy and Productivity in Modern Manufacturing
CNC Machining Tools are revolutionizing the cutting tools market by enabling automated and...
By Mayuri Kathade 2025-09-29 09:56:59 0 2K
Other
Opportunities and Challenges in the Germany Crushers Market
Regional variations in construction and mining activities significantly influence the demand for...
By Ram Vasekar 2025-09-30 11:42:23 0 1K
Crafts
Tactical Readiness Enhanced With Combat Military First Aid Kit Manufacturer
In critical combat environments, immediate access to reliable medical support is vital, and...
By yonoel yonoel 2025-12-23 02:06:01 0 546
Aldyra https://aldyra.com