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.

Поиск
Категории
Больше
Игры
Stranger Things Season 5 Finale – Anticipation & Theories
Season 5 Finale Anticipation Excitement Builds for 'Stranger Things' Season 5's Second Half and...
От Xtameem Xtameem 2025-11-28 02:36:44 0 910
Игры
Cybersecurity Landscape: Persistent Threats & Patch Gaps
The cybersecurity landscape remains stubbornly stagnant, according to recent vulnerability...
От Xtameem Xtameem 2025-12-17 01:15:55 0 664
Health
Cellulite Treatment Market to Reach $1.83 Billion by 2033 — Driven by Aesthetic Innovation
Market Overview The global cellulite treatment market size was valued at USD 833.07 million...
От Mahesh Chavan 2025-11-04 07:33:27 0 2Кб
Другое
Process Mining Market Trneds, Strategic Insights 2026: Driving Operational Efficiency and Digital Transformation
The global Process Mining Market Trneds, Strategic Insights 2026 is witnessing...
От Kajal Jadhav 2026-02-18 10:27:13 0 366
Игры
The Craziest Bluff I Ever Pulled Off in GoP3
The Craziest Bluff I Ever Pulled Off in GoP3 Every Governor of Poker 3 (GoP3) player has a story...
От Steve Org 2025-07-09 01:39:39 0 3Кб
Aldyra https://aldyra.com