Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Zoeken
Categorieën
Read More
Crafts
Practices for Protecting Aluminum MIG Wire from Moisture
As fabrication shops upgrade for electric vehicle production and modular renewable energy...
By Jason Robby 2025-07-30 09:42:12 0 1K
Sports
Battle Red Blog Groupthink: Chiefs Loss and 2024 Season Wrap Up
Texans lose a hard fought game against the Chiefs. Wrap up the season and give me what you think...
By Grissom Grissom 2025-05-22 03:06:58 0 2K
Other
¡Aventuras en Todoterreno con el Cuatrimoto de Carga Peruano!
Imagina una máquina que puede transformar los campos resbaladizos de Perú en una...
By Shinnytime Shinnytime 2024-11-27 09:07:45 0 2K
Shopping
Mike Pettine takes on bigger role with Browns offense
Cleveland' Ryan O'Hearn Jersey s offense went off the rails late last season, a swoon that only...
By Merl Treutel 2025-05-15 02:56:34 0 1K
Shopping
2025 August New Arrival Styles Golden Goose Shoes Outlet
2025 August New Arrival Styles Golden Goose Shoes Outlet
By Makayla Rivers 2025-08-27 08:08:11 0 325