Ubuntu: Upgrade FTP user to SFTP

0
26KB

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
Outro
The Role of Shale Gas in Transforming the Light Olefins Market
The global light olefins market is experiencing steady growth as industries recognize their...
Por Ram Vasekar 2025-08-25 10:31:49 0 559
Outro
Balenciaga Bags Outlet triangle waist fire a potent reminder that fashion
skinny lovers denim trend is here to stay this summer. Celebrities like and have all recently...
Por Kendra Greer 2025-05-06 13:16:03 0 2KB
Sports
Harold Landry contains been downright dominant for Titans security
It goes without the need of declaring that the Tennessee Titans security is made up of been the...
Por Miami Dolphins 2025-07-18 08:32:47 0 984
Shopping
began Bottega Veneta Arco Bags repairing a Moroccan basket she
And let not forget the home bargains either. As transgender people and gender nonconformists we...
Por Priscilla Gamble 2025-01-04 10:23:35 1 2KB
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 695