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.

Поиск
Категории
Больше
Networking
Comparing Sustainable Fabrics with Conventional Textiles
The Sustainable fabrics are environmentally friendly textiles designed to minimize the...
От Deady Cnm 2025-10-10 06:25:28 0 1Кб
Crafts
Practical Steps To Verify Weldability And Corrosion Behavior In Fabrication Lines
In modern fabrication environments procurement teams confront a crowded market and often ask...
От Jason Robby 2025-12-01 08:08:54 0 445
Другое
Natural Mineral vs. Purified Water: Market Insights
The consumer goods industry is always a reflection of global consumption habits, driven...
От Priya Singh 2025-09-17 14:58:29 0 1Кб
Другое
Calcium Citrate Market Growth Amid Rising Nutraceutical Demand
Calcium citrate is a vital compound in the health and wellness industry due to its high...
От Ram Vasekar 2025-10-14 10:04:31 0 1Кб
Игры
Sneaky Links: Modern Dating Secrets Revealed
Clandestine Modern Dating In today's dating landscape, casual encounters often remain hidden in...
От Xtameem Xtameem 2025-11-16 00:51:57 0 571
Aldyra https://aldyra.com