Ubuntu: Upgrade FTP user to SFTP

0
27Кб

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.

Поиск
Категории
Больше
Shopping
chaotic in the same way Hermes that is the creator of
except that it is actually look 7 from couture collection which they called wearable art. Rest...
От Brylee Estrada 2025-07-23 08:23:41 0 2Кб
Theater
Revolutionaire Hulp bij Wiskunde: Maak Kennis met de IA Math Solver
De opkomst van kunstmatige intelligentie heeft de manier waarop we leren en problemen oplossen...
От Chatgpt Francais 2025-11-12 03:44:26 0 191
Игры
Browser Operating System Security: 3 New Approaches
Looking at the evolving landscape of web browser security, three innovative approaches have...
От Xtameem Xtameem 2025-11-07 00:07:01 0 247
Shopping
Royals aim to break 3-game skid take on the Marlin
Miami Marlins (27-50, fifth in the NL East) vs. Kansas City Royals (42-37, third in the AL...
От Ebony Ortiz 2025-11-18 02:16:54 0 15
Shopping
Yankees fan secretly swipes Aaron Judge home run away as supporter who caught ball celebrates with friend
Aaron Judge did as Aaron Judge usually does and homered into the right field seats in the fourth...
От Ebony Ortiz 2025-11-18 01:56:19 0 24
Aldyra https://aldyra.com