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.

Поиск
Категории
Больше
Игры
Bitcoin Gift Cards: Shop with BTC
Bitcoin Gift Card Shopping In recent times, Bitcoin has gained significant popularity as a mode...
От Xtameem Xtameem 2026-01-06 01:21:39 0 442
Игры
UEFA Women's Champions League – ESPN Coverage Details
Disney Taps Football Focus Presenter for UEFA Women's Champions League Coverage ESPN is set to...
От Xtameem Xtameem 2025-10-31 05:05:33 0 1Кб
Игры
Elden Ring Nightreign: Pre-Orders Open Now
Recently, adventurers worldwide gathered to face the Nightlord in the Elden Ring Nightreign...
От Xtameem Xtameem 2026-02-17 04:54:44 0 70
Игры
Monopoly GO Roll Drop Event - Guide & Token Info
The Roll Drop minigame is currently active, drawing Monopoly GO players eager to drop their...
От Xtameem Xtameem 2026-02-10 15:38:39 0 188
Party
Mets vs. Diamondbacks Recap: Trapped within the heart with on your own
The Mets produced it exciting inside of the 9th, nonetheless the 7-4 previous rating goes down as...
От Howard Brionnajon 2025-07-23 00:12:14 0 2Кб
Aldyra https://aldyra.com