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.

Поиск
Категории
Больше
Игры
Unofficial Streaming Devices – Security Risks Exposed
Many consumers believe they are saving money by using unofficial streaming devices, often...
От Xtameem Xtameem 2025-11-24 03:00:51 0 583
Другое
How Does Hasen Ensure Drain Cover Longevity?
In the realm of home improvement, the Shower Drain Cover Factory at hasen-home presents a...
От home has 2025-09-05 05:53:10 0 2Кб
Networking
Interior Design Transforming Residential and Commercial Spaces
The global industry of Interior Design continues to evolve rapidly as homeowners, businesses and...
От Deady Cnm 2025-11-11 06:06:39 0 932
Другое
Halal Cosmetics Market Size, Share & Forecast Analysis to 2030
Halal Cosmetics Market Size & Insights According to MarkNtel Advisors study The future...
От Rozy Desoza 2025-10-29 19:18:31 0 905
Другое
Consumer Preferences Shift Toward Low-Calorie Sweeteners
The food and drink sector responds in real time to changing consumer requirements and innovations...
От Priya Singh 2025-10-14 16:05:51 0 1Кб
Aldyra https://aldyra.com