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.

Поиск
Категории
Больше
Health
Whatsapp +97433711266 #LYRICA pregabalin CV Capsules
Whatsapp +97433711266 #LYRICA pregabalin CV Capsules CBD oil Qatar, CBD oil Qatar online ,is cbd...
От Mohammed Saad 2025-08-15 06:11:59 0 2Кб
Игры
Cowboys' 90s Era - Netflix Documentary
Cowboys' Iconic 90s Era During the 1990s, the Dallas Cowboys transcended the realm of mere...
От Xtameem Xtameem 2025-12-19 08:19:50 0 285
Shopping
Indianapolis Colts training camp preview 2024 Wide receiver
The are almost a week away from the start of 2024 training camp at the Grand Park Sports Complex...
От Merl Treutel 2025-05-15 02:36:53 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 770
Игры
McMahon Exposé: Documentary Reveals Hidden Truths
McMahon Exposé Vince McMahon's name is deeply intertwined with the history of professional...
От Xtameem Xtameem 2025-11-11 06:43:38 0 830
Aldyra https://aldyra.com