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.

Поиск
Категории
Больше
Игры
Tailleur Dofus Unity 200: Guide de Progression Rentable
Le métier de tailleur au niveau 200 sur Dofus Unity est reconnu comme l’un des plus...
От Xtameem Xtameem 2025-12-25 09:32:26 0 290
Другое
How to Get BIS Registration Easily with India’s Best BIS Consultant—JR Compliance
  It is essential to understand the BIS registration procedure if you intend to introduce or...
От Tarun Jrcompliance 2025-11-24 11:48:44 0 1Кб
Игры
Security Development Lifecycle: Microsoft SDL 4.1 Guide
On Tuesday, Microsoft unveiled a comprehensive process template and supporting documentation for...
От Xtameem Xtameem 2025-11-17 00:28:16 0 799
Игры
Avatar Live-Action Series: Netflix Confirms 2026 Return
Avatar Live-Action Series Update The journey to restore balance continues as Netflix confirms the...
От Xtameem Xtameem 2026-01-07 07:32:49 0 212
Другое
Paints Coatings for High-Performance Surface Protection
The Paints Coatings play a vital role in both aesthetic enhancement and functional protection...
От Deady Cnm 2025-12-07 13:33:52 0 515
Aldyra https://aldyra.com