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.

Поиск
Категории
Больше
Другое
UK CBD Market Report 2034 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
UK CBD Market Overview 2026-2034 According to the latest report by The Report Cube, study UK...
От Lily Desouza 2025-11-06 18:42:22 0 525
Shopping
Mets bullpen gets major makeover with Ryan Helsley Tyler Rogers trade deadline move
See Also SAN DIEGO With one day still to go before the trade deadline, there is time for David...
От Ebony Ortiz 2025-11-18 02:20:38 0 430
Sports
Lynx Centre Jess Shepard toward Skip 2024 Period, Proceed Enjoying within Italy
The Minnesota Lynx introduced upon Wednesday afternoon that heart Jess Shepard will skip the full...
От Bichette Bichette 2025-07-28 07:15:02 0 2Кб
Игры
Last War Survival Districts Guide: Tips & Strategies
Conquering districts in Last War Survival is essential for advancing your gameplay. This task...
От Xtameem Xtameem 2025-11-26 05:16:05 0 153
Shopping
Dodgers Sign Blake Treine Dodgers Sign Blake Treine
December 10 : Treinens signing has now been officially announced by the Dodgers, per Fabian...
От Ebony Ortiz 2025-11-18 02:14:15 0 346
Aldyra https://aldyra.com