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.

Поиск
Категории
Больше
Health
Healthcare Cold Chain Logistics Market Trends – Innovation and Adoption
The Healthcare Cold Chain Logistics Market trends emphasize the shift toward advanced,...
От Divakar Kolhe 2025-09-25 09:40:50 0 1Кб
Игры
Immersive Poker Experience: How Governor of Poker 3 Excels in Visuals and Atmosphere
In a digital world flooded with poker games, Governor of Poker 3 (GoP3) has managed to stand...
От Steve Org 2025-08-05 01:49:44 0 2Кб
Игры
Ocean’s Eleven Box Office – Global Hits & Records
Over the past weekend, blockbuster hits like “Ocean’s Eleven” and...
От Xtameem Xtameem 2025-11-05 00:47:53 0 538
Игры
Netflix December Releases: Top Picks & Dates
Netflix streams fresh entertainment picks to close out the year. Dive into creature chaos with...
От Xtameem Xtameem 2025-12-02 02:36:38 0 32
Другое
Strategic Developments in the Compressed Air Leak Detection Market
Compressed air systems are critical to industrial operations, powering equipment and enabling...
От Divya Patil 2025-11-27 03:17:10 0 231
Aldyra https://aldyra.com