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.

Поиск
Категории
Больше
Игры
Proto Punk-Set: Verteidigungs-Boost für Teams
Verteidigungs-Boost für Teams Das Zenless Zone Zero Proto Punk-Set ist ein spezielles...
От Xtameem Xtameem 2026-01-15 06:55:01 0 373
Игры
Harry Potter and the Sorcerer’s Stone – Video Release Guide
Warner Home Video is preparing an extensive campaign for the release of 'Harry Potter and the...
От Xtameem Xtameem 2025-12-31 00:19:03 0 439
Игры
Stranger Things - Netflix's Breakout Hit Surges Past 8M
Netflix's "Stranger Things" has proven to be an extraordinary success, capturing an impressive...
От Xtameem Xtameem 2026-01-22 02:03:49 0 448
Игры
Louisiana Crime Drama – Netflix Film Begins Production
Production Begins on Louisiana-Based Crime Drama Principal photography has officially commenced...
От Xtameem Xtameem 2026-02-19 02:36:10 0 58
Игры
2025 Internet: Global Age Verification Sparks Privacy Debate
In 2025, the internet landscape underwent a significant transformation, fundamentally changing...
От Xtameem Xtameem 2026-01-11 00:23:04 0 401
Aldyra https://aldyra.com