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
Shopping
After all how much Celine time does an average model spend
fresh off of being chastised about her lack of experience in service work adds insult to injury...
By Sierra Cherry 2024-11-22 11:51:30 0 5K
Fitness
Anavar (Oxandrolone) Blood Levels Increased by Caffeine
Caffeine (1,3,7-trimethylxanthine) is the world's most widely consumed drug and its ergogenic...
By Ellen Green 2025-02-07 04:33:55 0 3K
Networking
TPU Solutions Enabling Lightweight, Tough, and Versatile Material Designs
The versatile polymer Thermoplastic Polyurethane (TPU) is widely used in engineering and consumer...
By Deady Cnm 2025-11-17 06:50:11 0 839
Games
Scooby-Doo Origins: The First Mystery Case
After more than fifty years, numerous animated series, and several theatrical movies, Scooby-Doo...
By Xtameem Xtameem 2026-01-09 02:28:19 0 244
Games
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 519
Aldyra https://aldyra.com