Ubuntu: Upgrade FTP user to SFTP

0
27K

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
How AI and IoT Are Transforming Asset Integrity Monitoring
The global Asset Integrity Management market leads the nation's so-called...
Por Priya Singh 2025-11-13 15:31:11 0 346
Outro
UAE Air Conditioner Market Size, Share & Forecast Analysis to 2030
UAE Air Conditioner Market Size & Insights According to MarkNtel Advisors study...
Por Rozy Desoza 2025-10-24 17:52:23 0 722
Outro
Saudi Arabia Waste to Energy Market Poised for Strong Growth Through 2030
MarkNtel Advisors, a leading market research and consulting firm, has announced the release of...
Por James Williamsus 2025-11-13 09:05:48 0 344
Crafts
Should procurement include recyclable packaging options in supplier briefs
In an era when infrastructure projects and clean energy rollouts are reshaping supply chains,...
Por Jason Robby 2025-11-11 08:14:07 0 459
Jogos
Watch Better Call Saul Online – Safe Streaming Guide
The concluding episode of Better Call Saul aired in August 2022, marking the end of one of...
Por Xtameem Xtameem 2025-11-21 01:58:43 0 130
Aldyra https://aldyra.com