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.

Поиск
Категории
Больше
Игры
Wasteland Season Update – Clash of Clans Gold Pass
Wasteland Season Update Greetings, chief! This month, Clash of Clans plunges us into a desolate,...
От Xtameem Xtameem 2025-11-04 00:18:18 0 877
Игры
Monopoly Go Railroad Ventures – Rewards & Milestones Guide
Progressing in Monopoly Go can become more challenging as your net worth increases, making it...
От Xtameem Xtameem 2025-11-27 13:10:33 0 629
Игры
Fortnite Bart Simpson Skin: Release Date & Season 6 News
Fortnite is preparing to introduce an exciting new addition with the upcoming release of the...
От Xtameem Xtameem 2025-10-31 02:51:49 0 916
Игры
The Dragon Prince Season 4: How to Watch Online Easily
The Dragon Prince Season 4 is finally here after a lengthy three-year hiatus! Starting November...
От Xtameem Xtameem 2025-11-15 03:45:07 0 754
Игры
Duet Night Abyss Co-op Dungeons: Multiplayer Guide
Co-op Dungeon Experience Duet Night Abyss offers a cooperative multiplayer mode focused on...
От Xtameem Xtameem 2025-12-02 02:15:34 0 554
Aldyra https://aldyra.com