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.

Pesquisar
Categorias
Leia Mais
Shopping
homewares offering was revealed in Goyard Sale a series of rooms
uses his collections as platforms to examine the Black experience in the United States. It's...
Por Mariah Rubio 2024-08-27 13:26:40 0 6K
Shopping
Guanghepaper’s Soil-First Philosophy: Baking Paper
Urban farmers nurturing organic produce face alarming discoveries: their compost-enriched soils...
Por ggg ggg 2025-08-13 05:44:13 0 125
Outro
Superset Installation Ubuntu 22.04
pip install virtualenv   On Ubuntu 22.04 pip install flask==2.2.5 pip install...
Por Saim Safdar 2024-02-06 17:34:14 0 16K
Outro
Presently inside Blue Jays Background: J.P. Arencibia Hits 2 Homers and a Triple
12 Decades Back Currently Opening Working day 2011. The Twins had been within Toronto. The Jays...
Por Stadion Nieuw 2024-03-09 08:09:27 0 12K
Crafts
Practices for Protecting Aluminum MIG Wire from Moisture
As fabrication shops upgrade for electric vehicle production and modular renewable energy...
Por Jason Robby 2025-07-30 09:42:12 0 493
Aldyra https://aldyra.com