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.

Buscar
Categorías
Read More
Shopping
How Can a Differential Shaft Refine Tension Harmony?
In multi roll winding environments, the Differential Shaft introduced by Cbbmachine reflects a...
By zane truese 2025-12-19 02:04:05 0 743
Juegos
Mega-Pinsir-Ex-Strategie – Tipps für das Pokémon TCG
Mega-Pinsir-Ex-Strategie Das Mega-Pinsir-Ex-Deck für das Pokémon-Sammelkartenspiel...
By Xtameem Xtameem 2025-11-11 01:27:09 0 1K
Other
Commercial Aircraft Cabin Lighting Market Size: Transforming Aircraft Interiors with LED Cabin Lighting
The Commercial Aircraft Cabin Lighting Market Size is experiencing significant growth...
By Kajal Jadhav 2026-02-06 10:45:43 0 479
Juegos
Hans Zimmer to Score All The Sinners Bleed – Netflix Series
The haunting world of 'All The Sinners Bleed' will soon pulse with a score from a master. Hans...
By Xtameem Xtameem 2026-02-28 20:10:20 0 333
Shopping
Newest Maison Margiela Shoes Sale
Newest Maison Margiela Shoes Sale Maisonmargielasale.com
By Simone Andersen 2025-11-17 09:27:20 0 1K