Ubuntu: Upgrade FTP user to SFTP

0
25Кб

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.

Поиск
Категории
Больше
Другое
Setting up Ulixee Hero for
Make sure you have NodeJS 18 and PM2 (you can follow Step 3 & 4 on link here) installed...
От OutOfBox 2024-09-07 16:15:20 0 6Кб
Shopping
LeVeon Bell says he wants the best for Jamal Adams but admits that he didnt like how Adams left the Jets
wants the best for , his teammate for one season in New York. Adams, a Pro Bowl safety for the...
От Merl Treutel 2025-05-15 02:20:15 0 424
Shopping
No Deposit? No Worries! Get Free Bets & Start Winning
No Deposit? No Worries! Get Free Bets & Start Winning For those looking to start betting...
От Nguyen Cuong 2025-02-14 06:38:22 0 1Кб
Главная
Application analysis of rdf pellet machine in garbage sorting scenario
rdf pellet machine is a kind of intelligent sorting equipment based on photoelectric principle,...
От Aldyracom Aldyracom 2024-11-11 07:42:35 0 3Кб
Игры
Monday Musings: Vols comprise a Really intriguing direction
 in the direction of Omaha  And its a NCAA baseball final decision Monday, yoo, y lets...
От Bregman Alex 2024-10-09 08:52:32 0 3Кб
Aldyra https://aldyra.com