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.

Поиск
Категории
Больше
Игры
Cybersecurity Warnings: Predictable Alerts After Headlines
Cybersecurity warnings follow major headlines with predictable regularity ' Yet another alert...
От Xtameem Xtameem 2026-02-16 23:44:18 0 182
Shopping
Lodolo cruises through 7 innings for 5th straight win Espinal homers in Reds 2-1 win over Pirate
PITTSBURGH (AP) Nick Lodolo allowed one run in seven innings to win a fifth straight start,...
От Ebony Ortiz 2025-11-18 02:01:15 0 932
Игры
Mega-Lohgock-Ex-Deck – Feuerstärke im Pokémon TCG
Feuerstärke im Sammelkartenspiel Entfache das Schlachtfeld mit dem brandheißen...
От Xtameem Xtameem 2025-11-01 01:23:17 0 1Кб
Игры
Skirk Genshin Impact : Guide et Astuces – Version 5.7
Skirk : Maîtresse Cryo Depuis ses premières apparitions, Skirk est entourée...
От Xtameem Xtameem 2026-01-22 10:04:18 0 482
Игры
The Protector – Turkish Superhero Series on Netflix
Turkish Superhero Series "The Protector" Begins Production for Netflix Netflix has started...
От Xtameem Xtameem 2026-02-19 00:54:18 0 156
Aldyra https://aldyra.com