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.

Zoeken
Categorieën
Read More
Spellen
Sticker Treasures Monopoly GO: Token Tips & Strategies
To maximize your success in the Sticker Treasures minigame within Monopoly GO, strategic...
By Xtameem Xtameem 2025-11-04 00:12:18 0 402
Other
How Does Hasen Ensure Drain Cover Longevity?
In the realm of home improvement, the Shower Drain Cover Factory at hasen-home presents a...
By home has 2025-09-05 05:53:10 0 1K
Shopping
She rewears her Cheap Dior Handbags high school gymnastics
It holds a special place in my heart because it was his last couture show before he was...
By Genesis Nguyen 2025-07-12 11:53:04 0 2K
Religion
MAI VÀNG MIỀN TÂY MÙA TẾT
MAI VÀNG MIỀN TÂY MÙA TẾT: NGƯỜI TRÚNG LỚN, KẺ LO ĐẦU RA   I....
By Hohoaian Hoo 2025-10-31 13:55:38 0 563
Other
Key Trends Driving Growth in the Global White Shrimp Industry
The food and drink sector responds in real time to changing consumer requirements and innovations...
By Priya Singh 2025-11-04 12:26:45 0 437
Aldyra https://aldyra.com