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.

Поиск
Категории
Больше
Игры
Battlefield 6: падение в рейтинге вовлеченности
Аналитика по вовлеченности геймеров в США за последнюю неделю показывает, что популярность Call...
От Xtameem Xtameem 2025-12-31 13:42:29 0 405
Игры
Massively OP Podcast: MMO News & Industry Insights
Imagine a moment of pure joy: diving into detailed financial reports of your favorite gaming...
От Xtameem Xtameem 2025-11-19 03:56:32 0 989
Networking
Cereal grinding machinery Technological Innovations and Market Potential
Cereal grinding machinery includes a range of equipment designed to process different types of...
От Mayuri Kathade 2025-09-12 11:41:19 0 2Кб
Networking
Tool Holder Market Size estimation with demand across automotive and aerospace manufacturing
As Per Market Research Future, the Tool Holder Market Size is projected to expand significantly...
От Mayuri Kathade 2026-01-29 09:36:25 0 355
Игры
Diane Nelson: Warner Bros. Marketing VP
Diane Nelson ascends to the role of senior vice president for domestic marketing at Warner Bros....
От Xtameem Xtameem 2025-12-31 01:03:57 0 410
Aldyra https://aldyra.com