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.

Поиск
Категории
Больше
Другое
Innovations Transforming the Refrigeration Valves Market
Manufacturing is the cornerstone of today's industry and business, enabling the production of...
От Priya Singh 2025-11-18 03:00:32 0 119
Shopping
accessories that are at Hermes least twenty years old
The All Stars contestant has even delivered fresh off the runway looks this season. for the...
От Brylee Estrada 2025-07-21 06:01:08 0 2Кб
Игры
FC 26 Record Breaker Items – Guide & Acquisition Tips
Introduction to FC 26 Record Breaker Items Celebrating Real-Life Football Achievements Players...
От Xtameem Xtameem 2025-11-15 01:07:02 0 176
Игры
Genshin Impact: Verborgene Teleporter – Fundorte & Tipps
Verborgene Teleporter in Genshin Um die Erkundung der Diebesregion in Genshin Impact zu...
От Xtameem Xtameem 2025-11-13 01:53:10 0 202
Другое
Organic Biogas Market : Size, Share, and Growth Opportunities 2025 –2032
"Executive Summary Organic Biogas Market Trends: Share, Size, and Future...
От Data Bridge 2025-11-03 04:45:13 0 334
Aldyra https://aldyra.com