Ubuntu: Upgrade FTP user to SFTP

0
28Кб

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.

Поиск
Категории
Больше
Главная
Digitalization Impact on the Hotel Furniture, Fixtures and Equipment Market
The hospitality industry is currently undergoing a renaissance. If you’ve stepped into a...
От Riya Patil 2026-03-17 04:34:06 0 51
Игры
PlayerUnknown's Battlegrounds — новые анимации
Если вы увлекаетесь игрой в «королевскую битву» PlayerUnknown's Battlegrounds, то...
От Xtameem Xtameem 2025-12-24 10:32:22 0 560
Shopping
Aluminum vs Other Camping Cookware Materials for Outdoors
When packing for a camping trip, choosing the right cookware material can make or break your...
От Aluminium Lanren 2025-10-14 08:31:16 0 2Кб
Другое
Bulk Acoustic Wave Sensors Market Evolution – From Trends to Transformation (2025–2035)
"Executive Summary Bulk Acoustic Wave Sensors Market Size and Share: Global Industry...
От Danny King 2025-10-10 10:17:25 0 2Кб
Игры
Netflix Picks 2026 – Top Shows to Stream This Weekend
Top Netflix Picks Weekends are the perfect time to unwind and indulge in some quality streaming....
От Xtameem Xtameem 2026-01-12 01:29:09 0 513
Aldyra https://aldyra.com