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.

Căutare
Categorii
Citeste mai mult
Jocuri
Whiteout Survival Molly Guide – Stats & Abilities
Hero Profile and Abilities Upon awakening, Molly found herself devoid of any memories from...
By Xtameem Xtameem 2025-11-07 01:21:00 0 1K
Jocuri
Duet Night Abyss Day 1 Guide – Essential Beginner Tips
Upon logging into Duet Night Abyss, an immersive world greets you with vibrant music and a...
By Xtameem Xtameem 2025-12-09 00:21:14 0 873
Jocuri
Black Myth: Wukong Tops Steam Wishlist – New RPG King
The action RPG landscape has a new king of anticipation on Steam's wishlist charts. With the...
By Xtameem Xtameem 2026-02-20 00:18:10 0 384
Alte
Polypropylene Market Insights: Expanding Demand for Lightweight and Durable Plastics
Polypropylene is a highly adaptable polymer that supports a wide range of industrial and consumer...
By Ram Vasekar 2026-02-06 06:05:17 0 598
Shopping
Accessories like Dior a pair of basic black ballet and a woven
created her brand in 2020 to benefit women on both sides of the business. First, she creates...
By Priscilla Gamble 2024-12-22 10:18:12 0 4K
Aldyra https://aldyra.com