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.

Поиск
Категории
Больше
Другое
¡Aventuras en Todoterreno con el Cuatrimoto de Carga Peruano!
Imagina una máquina que puede transformar los campos resbaladizos de Perú en una...
От Shinnytime Shinnytime 2024-11-27 09:07:45 0 3Кб
Другое
CNC machining tools Driving Accuracy and Productivity in Modern Manufacturing
CNC Machining Tools are revolutionizing the cutting tools market by enabling automated and...
От Mayuri Kathade 2025-09-29 09:56:59 0 1Кб
Главная
Stevia Market Overview, Industry Share, and Competitive Landscape 2025–2032
The food and drink sector responds in real time to changing consumer requirements and innovations...
От Riya Patil 2025-10-24 16:25:58 0 932
Игры
Warner Bros. International Opens First China Multiplex
Warner Bros. International is set to inaugurate its first multiplex cinema in China, scheduled to...
От Xtameem Xtameem 2025-12-11 03:31:05 0 133
Игры
Advanced Bluffing Techniques: How to Become a Poker Master in Governor of Poker 3
Bluffing is an essential skill in Governor of Poker 3, separating casual players from true poker...
От Steve Org 2025-11-17 06:05:36 0 756
Aldyra https://aldyra.com