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 778
Другое
Kuwait Catering Services Market Size, Share & Forecast Analysis to 2030
Kuwait Catering Services Market Size & Insights According to MarkNtel Advisors study...
От Rozy Desoza 2025-10-22 16:11:02 0 1Кб
Другое
Cloud AI Market Share Analysis 2026: Competitive Landscape, Trends, and Strategic Outlook
The Cloud AI Market Share Analysis 2026 outlines how cloud-based artificial...
От Kajal Jadhav 2026-02-13 10:51:55 0 88
Игры
Torching 2024 - Jeff Ross Leads Comedy Roast
Jeff Ross continues to ignite the comedy scene with his trademark sharp wit. After delivering...
От Xtameem Xtameem 2025-12-21 02:58:25 0 509
Игры
Delta Force PC: Optimize Graphics Settings for Smooth Gameplay
Delta Force, developed with Unreal Engine 5 and currently in early access beta, delivers...
От Xtameem Xtameem 2026-01-21 08:13:10 0 415
Aldyra https://aldyra.com