Ubuntu: Upgrade FTP user to SFTP

0
28KB

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
Jogos
iHeartRadio Music Awards 2026: Nominees Revealed
iHeartRadio Music Awards 2026 Announces Star-Studded Nominee Lineup The upcoming iHeartRadio...
Por Xtameem Xtameem 2026-01-12 00:35:11 0 528
Jogos
MLB The Show 25 Signature Series: New Cards Update
As the 2025 MLB season approaches its final stages, players are beginning to notice the shift...
Por Xtameem Xtameem 2026-01-15 09:20:23 0 484
Jogos
Netflix Debuts Julie’s Greenroom – Preschool Arts Show
In a groundbreaking move, Netflix has announced the upcoming debut of “Julie’s...
Por Xtameem Xtameem 2026-01-18 08:07:24 0 504
Jogos
Call of Duty Mobile: How to Use Sprays & Emotes
Despite the fast-paced nature of the Call of Duty series, its mobile adaptation has proven to be...
Por Xtameem Xtameem 2025-11-13 04:31:25 0 1KB
Outro
Pune’s Modern Living Landscape: Exploring Iconic Residential Projects - Pune Realty
Pune Realty one of India’s fastest-growing metropolitan cities, has transformed into a hub...
Por Pravin Gupta 2026-01-31 10:45:31 0 726