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.

Поиск
Категории
Больше
Игры
Proton SOC 2 Type II – Security & Compliance Validated
Proton's operational security framework stands validated through meticulous external...
От Xtameem Xtameem 2025-11-08 09:11:14 0 900
Игры
Trikephalo-Deckstrategie – Tipps & Mega-Aufstieg
Trikephalo-Deckstrategie Setze dein Gegner mit dem kraftvollen Trikephalo-Deck aus der aktuellen...
От Xtameem Xtameem 2025-11-21 02:29:18 0 707
Shopping
Hungarys Golden Team Hungarys Golden Team
Hungary were cheated out of the 1954 World Cup final. That is the the view of many, and, whether...
От Merl Treutel 2025-05-15 02:23:11 0 3Кб
Игры
PUBG: Battlegrounds — зимнее обновление Эрангеля
Разработчики PUBG: Battlegrounds представили крупное зимнее обновление, которое полностью...
От Xtameem Xtameem 2025-12-04 12:40:44 0 455
Игры
Shockstar Disco-Set: Betäubungs-Verstärker
Shockstar Disco-Set für Betäubung Das Shockstar Disco-Set in Zenless Zone Zero ist eine...
От Xtameem Xtameem 2026-01-08 09:55:59 0 170
Aldyra https://aldyra.com