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.

Поиск
Категории
Больше
Игры
Encryption: Global Privacy Threats & Protection Debate
Digital privacy shields face unprecedented pressure globally, even as their importance...
От Xtameem Xtameem 2025-11-01 01:40:58 0 1Кб
Игры
Holiday Romantic Comedy: Netflix's Festive Preview
Holiday Romantic Comedy Preview Prepare for a delightful holiday season with a fresh romantic...
От Xtameem Xtameem 2025-12-09 02:55:43 0 555
Networking
Dry Vacuum Pump Market Share Competitive Landscape and Strategic Developments
As Per Market Research Future, the Dry Vacuum Pump Market Share is becoming increasingly...
От Mayuri Kathade 2026-01-19 11:04:27 0 519
Shopping
the night also included a new award for design presented by a digital
Admittedly they don't hold a candle to the real thing but for millions of users these virtual...
От Priscilla Gamble 2024-12-24 14:44:28 0 3Кб
Игры
Netflix ISP Speed Index: October Insights & Rankings
The latest Netflix ISP Speed Index for October reveals notable shifts in the streaming quality...
От Xtameem Xtameem 2026-01-23 10:05:59 0 379
Aldyra https://aldyra.com