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.

Поиск
Категории
Больше
Игры
China Movie Theater Rules: Foreign Investment Rises
China’s culture ministry says rules allowing up to 49% foreign stakes in movie theaters...
От Xtameem Xtameem 2025-10-31 00:30:58 0 1Кб
Другое
Global Trends Driving the Lactate Salts Market Expansion
The Lactate Salts Market demand is increasingly influenced by global sustainability trends. With...
От Ram Vasekar 2025-09-25 12:42:31 0 1Кб
Networking
Export and Domestic Demand for South Korea Sheet Metal
The South Korea Sheet Metal is a critical sector within the country’s highly...
От Deady Cnm 2025-10-14 16:41:28 0 1Кб
Главная
Online Music Education Market Emerging Trends and Investment Outlook 2025–2032
The global Online Music Education Market leads the nation's so-called 'renaissance', such that...
От Riya Patil 2025-10-30 13:01:28 0 1Кб
Игры
Security Development Lifecycle: Microsoft SDL 4.1 Guide
On Tuesday, Microsoft unveiled a comprehensive process template and supporting documentation for...
От Xtameem Xtameem 2025-11-17 00:28:16 0 979
Aldyra https://aldyra.com