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.

Поиск
Категории
Больше
Игры
WWE 2K25: Netflix Mobile Game Release & Features
This year marks an exciting evolution in mobile gaming, especially for fans of Netflix's popular...
От Xtameem Xtameem 2026-01-06 01:21:55 0 417
Игры
Lady Starfallen – Sound Thresher: Image Guide
lady starfallen sound thresher Midnight Harvester For the best viewing experience on mobile...
От Xtameem Xtameem 2026-02-11 17:15:48 0 208
Другое
Digital Farming Platforms Transforming Wood Vinegar Market Trends
Sustainability-focused transformation across agriculture and allied industries is reshaping...
От Tejas Kudale 2025-12-26 11:41:09 0 665
Crafts
Create Tangle-Free Moments: Practical Grooming Tips and Tool Choices
For anyone trying to keep a home fur-free without stressful grooming sessions, a thoughtful...
От Chloe Vincy 2025-10-24 08:02:15 0 2Кб
Food
cheap moonrocks online USA website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
От Thcweed Express 2025-11-26 15:59:33 0 902
Aldyra https://aldyra.com