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.

Поиск
Категории
Больше
Игры
Anonymous Launches Attacks: Digital Assault on Visa, MasterCard, and PayPal
In the digital shadows, a collective rallying under the banner 'Anonymous' has mobilized. They...
От Xtameem Xtameem 2026-01-21 04:09:06 0 367
Shopping
the notion Hermes Shoes that great clothes are great clothes
Working with her stylist and creative director Brett Alan Nelson, the duo started crafting the...
От Braelyn Arellano 2024-05-31 07:25:48 0 10Кб
Игры
TH18 Upgrade – New Defenses Revealed: Revenge Tower
Clash of New Defenses Hey there, Clashers! Get ready for an exciting update as we reveal the...
От Xtameem Xtameem 2025-11-18 00:55:08 0 899
Health
ALS Treatment Market to Reach $1.37 Billion by 2033 — Advancing Neurological Care
Market Overview The global amyotrophic lateral sclerosis treatment market size was valued...
От Mahesh Chavan 2025-11-04 07:31:20 0 2Кб
Игры
Acting Challenges – Perseverance in a Competitive Field
Facing obstacles in any field can be daunting, yet few pursuits demand as much perseverance as...
От Xtameem Xtameem 2026-01-22 01:11:21 0 401
Aldyra https://aldyra.com