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
Juegos
Night Market VALORANT - Édition Anniversaire
Marché de nuit anniversaire Le Night Market de VALORANT revient pour une édition...
By Xtameem Xtameem 2026-02-18 16:36:48 0 83
Juegos
Daniel Radcliffe Returns: Every Brilliant Thing on Broadway
Daniel Radcliffe makes a triumphant return to Broadway, headlining the acclaimed solo play...
By Xtameem Xtameem 2025-10-30 01:07:28 0 1K
Shopping
Francisco Lindors grand slam and solo shot carry the Mets to a 7-1 win vs the Padres
SAN DIEGO (AP) Francisco Lindor hit a two-out grand slam in the fourth inning, two batters after...
By Merl Treutel 2025-10-26 04:36:44 0 1K
Juegos
Harry Potter TV Series – Anticipation Builds at HBO Max
The highly anticipated television adaptation of J.K. Rowling's beloved saga is generating...
By Xtameem Xtameem 2026-02-11 03:06:59 0 238
Shopping
Belichick on Brady Rodgers They both wear No. 12
Asked to name the similarities he sees between and , coach on Wednesday provided one of his cla...
By Merl Treutel 2025-05-15 02:55:05 0 3K
Aldyra https://aldyra.com