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.

Поиск
Категории
Больше
Игры
Netflix 2025 Content Preview – Upcoming Originals Unveiled
Netflix 2025 Content Preview In the vast landscape of streaming platforms, Netflix stands out as...
От Xtameem Xtameem 2025-11-10 04:17:33 0 418
Shopping
Redskins blast Bills to stay atop NFC East
The (7-7) remain in the driver's seat of the NFC East after knocking off the on Sunday in a game...
От Merl Treutel 2025-05-15 02:27:05 0 2Кб
Игры
Whiteout Survival Pets Calculator – Cost & Resources
Effortlessly determine the expenses involved in acquiring pets by accounting for various...
От Xtameem Xtameem 2025-10-31 00:09:30 0 538
Игры
Fortnite and The Simpsons: Donut Storm Guide
The collaboration between Fortnite and The Simpsons has resulted in an exciting crossover event....
От Xtameem Xtameem 2025-11-13 03:25:54 0 378
Другое
Lithium Iron Phosphate Suppliers and Value Chain Insights
Lithium Iron Phosphate Suppliers,Suppliers expand capacity to meet EV & energy demand...
От Rupali Wankhede 2025-09-11 17:38:48 0 1Кб
Aldyra https://aldyra.com