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.

Поиск
Категории
Больше
Игры
Visual Effects Excellence: Honoring Film & TV Artistry
Visual Effects Excellence: A Celebration of Cinematic and Television Artistry On a star-studded...
От Xtameem Xtameem 2025-11-24 02:30:20 0 293
Другое
An Overview of the Generative AI in Media and Entertainment Market
  The Generative AI in Media and Entertainment Market over time has evolved from a...
От Sssd Ddssa 2025-10-08 04:26:00 0 933
Игры
Zenless Zone Zero: Neuer Turm-Modus im Update 1.5
In den aktuellen Leaks zu Zenless Zone Zero wird ein bedeutender neuer Spielmodus für das...
От Xtameem Xtameem 2025-10-30 06:22:07 0 665
Shopping
Is Aircraft Aluminum Sheet Suitable for Aircraft Fuselage Skin Applications?
Aircraft fuselage skin requires a material that balances light weight, strength, corrosion...
От Aluminium Lanren 2025-12-01 08:57:44 0 102
Другое
North America Clinical Trial Supplies Market Analysis 2029: Market Share, Emerging Trends, and Key Growth Drivers
"Competitive Analysis of Executive Summary North America Clinical Trial Supplies...
От Danny King 2025-10-16 12:25:45 0 1Кб
Aldyra https://aldyra.com