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
in on the fun we dug Hermes the best early aughts trends from what
It's my story that he was in. While almost every woman outlines the importance of breathing room...
От Henley Pierce 2024-11-12 05:52:58 0 5Кб
Другое
Algae Biofuel TechnologiesMarket Innovations & Disruptive Solutions
Algae Energy Commercialization Trends - Covers trends in scaling algae biofuel for commercial...
От Rupali Wankhede 2025-09-23 18:49:55 0 1Кб
Главная
they wanted Prada Shoes Sale to capture the subtle
the houndstooth set is composed of a sharp shouldered with a nipped waist and hem. Now, the vast...
От Sienna King 2025-06-19 09:52:26 0 2Кб
Literature
high THC moon rocks USA website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
От Thcweed Express 2025-11-26 15:57:58 0 583
Игры
Free Fire x Spider-Man: Across the Spider-Verse Event
Garena has officially announced an exciting new partnership between Free Fire and the...
От Xtameem Xtameem 2025-12-16 01:32:53 0 179
Aldyra https://aldyra.com