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.

Поиск
Категории
Больше
Shopping
Hermes punctuated with a red rose lapel pin and silky
Call it a cooler, grungier take on dressing; the way of wearing the pattern is all about...
От Simone Andersen 2025-10-31 09:25:36 0 1Кб
Shopping
delectable options including the best Bottega Veneta Backpack Bags gifts under 100
take your pick from a line slitted versions or straight cut in every wash imaginable from light...
От Priscilla Gamble 2025-01-06 09:10:42 0 3Кб
Игры
Home for Christmas Season 3 – Netflix Release Date & News
Over the years, Netflix has been a prolific creator of holiday-themed movies and series, but one...
От Xtameem Xtameem 2025-11-27 00:54:27 0 748
Religion
Loro Piana Shoes Sale expression and the joy of living
As a trans woman remember first learning to from the waist up; all it took was learning my breast...
От Finley York 2025-08-07 05:52:38 0 3Кб
Другое
Copper Mining Market Trends: Advancements in Sustainable and Efficient Mining Practices
Copper remains one of the most essential metals in the global economy due to its superior...
От Ram Vasekar 2026-02-05 09:29:36 0 13
Aldyra https://aldyra.com