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.

Поиск
Категории
Больше
Игры
Aero Rover in Wuthering Waves: Skills & Role Guide
Aero Rover emerges as a new elemental variant of the Rover in Wuthering Waves, anticipated in...
От Xtameem Xtameem 2025-11-12 02:43:12 0 839
Игры
Wuthering Waves 2.8 Update – New Characters Revealed
Wuthering Waves 2.8 Update In the latest update of Wuthering Waves 2.8, two new characters have...
От Xtameem Xtameem 2025-11-19 01:31:38 0 680
Другое
Next-Gen Energy Storage Battery Solutions for Sustainable Power Systems
Energy storage battery solutions - Energy storage battery solutions play a crucial role in...
От Rupali Wankhede 2025-10-31 10:26:55 0 963
Другое
Key Players and Market Strategies in Liquid Roofing Industry
The liquid roofing industry size is on a strong growth trajectory, driven by rising...
От Shubham Gurav 2025-09-11 11:55:17 0 1Кб
Другое
Golden Goose Dad-Star Sneakers the star wanted an ensemble that was both
Riffing off the outdoorsy setting, Golden Goose Dad-Star Sneakers the star wanted an ensemble...
От Margot Poole 2025-05-08 08:40:04 0 3Кб
Aldyra https://aldyra.com