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.

Поиск
Категории
Больше
Игры
The Witcher Season 4 – New Geralt, Epic Saga Begins
Season 4 of The Witcher The Continent braces for a new era as all episodes of The Witcher’s...
От Xtameem Xtameem 2026-01-06 02:09:55 0 115
Shopping
the work of in his Golden Goose collections one of which featured
the third option is the couture level which costs 309 a month. As are stylists hairstylists and...
От Priscilla Gamble 2024-12-14 18:22:11 0 3Кб
Другое
Vietnam Cosmetics Market Size, Share & Forecast Analysis to 2030
Vietnam Cosmetics Market Size & Insights According to MarkNtel Advisors study The future...
От Rozy Desoza 2025-10-29 19:26:23 0 886
Shopping
Golden Goose Shoes Sale his back in wingspan fashion
The very first time that visited New York City, people could still smoke in planes, the designer...
От Braelyn Arellano 2024-05-30 05:29:14 0 8Кб
Игры
Dune: Awakening – Survival Game for Newcomers
Having never engaged with the Dune universe through books or films, my knowledge is quite...
От Xtameem Xtameem 2025-11-28 02:54:18 0 641
Aldyra https://aldyra.com