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.

Pesquisar
Categorias
Leia Mais
Shopping
Syna World Shakes Up Fashion Scene
Streetwear once lived quietly in hidden corners of urban culture, but now it dominates daily...
Por Syna World 2026-02-22 04:21:01 0 34
Networking
The Future of Online Engagement: The Importance of a Responsive Web Design Agency
In a world where digital devices are an extension of our daily lives, the demand...
Por A1j International 2024-08-23 10:45:26 0 7K
Jogos
2016 MMORPG Highlights – Top Games Shaping the Year
2016 MMORPG Highlights A few weeks back, Eliot Lefebvre from Massively OP pondered which MMORPG...
Por Xtameem Xtameem 2025-10-30 03:29:50 0 1K
Jogos
Web Encryption Vulnerability - TLS Security Flaw
Security Vulnerability in Web Encryption Protocols Forces Researchers to Go Public A team of...
Por Xtameem Xtameem 2025-12-31 00:49:59 0 456
Networking
Industrial Dust Collector Market Growth Driven by Factory Dust Extraction Systems and Industrial Air Filtration
As Per Market Research Future, the Industrial Dust Collector Market is expected to experience...
Por Mayuri Kathade 2026-01-08 09:54:18 0 475
Aldyra https://aldyra.com