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.

Поиск
Категории
Больше
Игры
Valorant : accélérer les mises à jour – astuces clés
Lorsque vous jouez à Valorant régulièrement, vous avez sûrement...
От Xtameem Xtameem 2025-11-06 03:23:56 0 1Кб
Игры
PlayerUnknown's Battlegrounds — релиз на Xbox One
На мероприятии компании Microsoft было сделано официальное объявление о выходе игры...
От Xtameem Xtameem 2026-01-13 00:35:44 0 719
Другое
Cost Efficiency and ROI in Digital Signage Deployments
The digital signage market has emerged as one of the fastest-growing segments within the global...
От Priya Singh 2025-10-01 16:11:34 0 2Кб
Другое
VerifyVista: The Premium Business Data Powerhouse Transforming B2B Growth in India (2025 Edition)
Why Businesses Need Data More Than Ever Let’s be honest, these days, if you want your...
От Tarun Jrcompliance 2025-12-04 07:47:01 0 2Кб
Игры
EA FC 26 Time Warp-Event: Fußballlegenden & Icons
Zum Jahresbeginn bringt EA Sports das aufregende Time Warp-Event in EA FC 26 auf den Weg, das...
От Xtameem Xtameem 2025-12-31 01:22:56 0 845
Aldyra https://aldyra.com