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.

Поиск
Категории
Больше
Игры
Obscura VPN Audit: Security Confirmed
Obscura VPN Receives Clean Bill of Health in First Security Audit Security experts at Cure53...
От Xtameem Xtameem 2025-12-26 00:39:05 0 475
Игры
NFL Holiday Season Contest – 2024 Results & Recap
NFL Holiday Season Contest: Closed for 2024 The annual NFL Christmas Gameday promotion hosted by...
От Xtameem Xtameem 2025-12-22 02:06:57 0 532
Другое
Snorkel Intake Kit Market Size, Growth Trends & Forecast | Research Intelo
The global Snorkel Intake Kit Market is gaining steady traction as demand for enhanced vehicle...
От Caitan Cruz 2026-01-23 14:20:42 0 545
Игры
Love Actually on Netflix: How to Watch Anywhere Safely
Since its debut over two decades ago, Love Actually has cultivated a dedicated fanbase and...
От Xtameem Xtameem 2025-12-28 00:18:45 0 445
Игры
Rafael Leão: Ultimate Striker Guide & FC 26 Tips
Introduction About Rafael da Conceição Leão Rafael da...
От Xtameem Xtameem 2026-01-03 09:54:45 0 439
Aldyra https://aldyra.com