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.

Поиск
Категории
Больше
Другое
Kuwait Courier Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
Kuwait Courier Market Overview 2026-2032 According to the latest report by The Report Cube,...
От Lily Desouza 2025-11-07 18:36:46 0 1Кб
Shopping
accessories that are at Hermes least twenty years old
The All Stars contestant has even delivered fresh off the runway looks this season. for the...
От Brylee Estrada 2025-07-21 06:01:08 0 3Кб
Shopping
How Does Magnetic Powder Brake Perform with Cbbmachine Systems?
In many industrial control scenarios, the Magnetic Powder Brake serves as a subtle yet effective...
От zane truese 2026-01-19 05:52:03 0 638
Другое
How ncevalve Enhances Sealing in Ball Valve Factory?
Durability and precision are at the heart of a Ball Valve Factory, and ncevalve exemplifies how...
От Naishi Valve 2025-12-04 01:21:01 0 1Кб
Crafts
Efficient Safety Preparedness Through Trusted First Aid Kit Supplier Products
Choosing a dependable First Aid Kit Supplier is essential for ensuring safety and preparedness in...
От yonoel yonoel 2025-12-11 02:21:29 0 982
Aldyra https://aldyra.com