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.

Поиск
Категории
Больше
Игры
Alexa & Katie – New Netflix Series on Friendship
A new series arrives to celebrate the power of unwavering support. 'Alexa & Katie' brings...
От Xtameem Xtameem 2026-02-16 05:11:33 0 369
Игры
Skelabra-Deckstrategie – Tipps für Pokémon TCG Pocket
Skelabra-Deckstrategie Erlebe die unheimliche Stärke des neuen Skelabra-Decks in...
От Xtameem Xtameem 2026-02-13 04:18:42 0 389
Игры
Hide.me Not Working with Netflix – Quick Fixes & Tips
Experiencing blocked Netflix content despite using Hide.me? You're not alone. Streaming...
От Xtameem Xtameem 2025-12-10 00:40:20 0 768
Игры
Champions Qualification Points – How to Qualify Fast
Introduction to Champions Qualification Earning Champions Qualification Points (CQP) Players...
От Xtameem Xtameem 2025-12-06 03:45:42 0 821
Игры
Golden Kingdom Season 3: Key Strategy Tips
Season 3 Strategy Tips Master the new Golden Kingdom with these essential Season 3 insights. For...
От Xtameem Xtameem 2026-02-19 02:23:44 0 320
Aldyra https://aldyra.com