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.

Поиск
Категории
Больше
Health
Technological Advancements in Haemorrhagic Stroke Treatment
Haemorrhagic stroke remains one of the most challenging neurological emergencies, with a high...
От Divya Patil 2025-11-29 17:02:07 0 482
Игры
MW Kudus FC 26 – Profil et atouts Winter Wildcards
Nouvelle recrue MW Kudus Une nouvelle recrue vient d’être intégrée...
От Xtameem Xtameem 2025-12-23 05:48:28 0 85
Другое
Residential & Commercial UPS Market Analysis
Residential and Commercial UPS – Smaller-scale UPS solutions for homes, offices, and...
От Rupali Wankhede 2025-09-26 06:00:38 0 1Кб
Другое
UAE HVAC Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
UAE HVAC Market Overview 2026-2032 According to the latest report by The Report Cube,...
От Lily Desouza 2025-11-04 18:08:11 0 823
Другое
How Does ncevalve Underground Ball Valve Architecture Support Confident Network Flow?
The integration of an Underground Ball Valve within extensive buried piping layouts has gradually...
От Naishi Valve 2025-11-25 07:57:23 0 737
Aldyra https://aldyra.com