Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Ethical Hacking Training in Pune: Unlock High-Paying Cybersecurity Roles
The digital transformation of businesses has brought convenience, scalability, and...
By WebAsha Technologies 2025-12-27 11:12:06 0 220
Other
Chuanya Perspective on Durability of Chinese-style Roofing Materials
In contemporary architectural projects,Chinese-style Roofing Materials have become a point...
By jiangbb jiangbb 2025-11-25 03:28:53 0 897
Games
Dark Arts at Warner Bros. Studio Tour London – Halloween
As the spooky season approaches, a chilling atmosphere takes hold once more with the return of...
By Xtameem Xtameem 2025-11-07 04:50:41 0 810
Shopping
From the woman Prada who brought you Strawberry
By incorporating a classic gingham print and more minimal accessories, her styling feels...
By Jade Paul 2025-09-13 06:43:10 0 2K
Games
Genshin Impact: Luna IV Reveal Event Details
Attention all travelers! Exciting news is coming your way. On January 2nd, 2026, at midnight...
By Xtameem Xtameem 2025-12-25 10:28:44 0 198
Aldyra https://aldyra.com