Ubuntu: Upgrade FTP user to SFTP

0
28K

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.

Căutare
Categorii
Citeste mai mult
Alte
A Deep Dive: The Third Party Risk Management Market Analysis
A strategic Third Party Risk Management Market Analysis reveals a market of immense...
By Shraddha Nevase 2025-09-09 11:28:32 0 2K
Health
buy cannabis online Oregon website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
By Thcweed Express 2025-11-26 16:07:55 0 941
Jocuri
Wallace & Gromit Return – Norbot and Penguin Plot Revealed
Feathered Foe's Return The classic duo faces a feathered fiend's furious comeback. A familiar foe...
By Xtameem Xtameem 2025-12-28 00:32:30 0 266
Jocuri
Phantom Son – Spike Fearn, Renée Zellweger Unite
Spike Fearn accelerates his ascent joining forces with Renée Zellweger in David Yates'...
By Xtameem Xtameem 2025-12-13 01:17:54 0 402
Jocuri
Honkai: Star Rail Update 3.2 – Neue Welt & Banner
Honkai: Star Rail Update 3.2 In der offiziellen Entwicklerübertragung wurde das große...
By Xtameem Xtameem 2026-01-21 03:39:24 0 163
Aldyra https://aldyra.com