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.

Cerca
Categorie
Leggi tutto
Giochi
Marvel Rivals Season 5 Trailer: Rogue & Gambit Reveal
Season 5 Trailer Reveals The highly anticipated Season 5 trailer for Marvel Rivals has just been...
By Xtameem Xtameem 2025-11-12 00:49:56 0 1K
Altre informazioni
Impact of Raw Material Prices on Titanium Metal Industry
Titanium has emerged as a critical material across multiple industries due to its high strength,...
By Shubham Gurav 2025-11-14 08:24:29 0 1K
Giochi
Capone's Early Years: Warner Bros' Cicero Project
Warner Bros is advancing a project called Cicero, focusing on Capone's early years. Penn's...
By Xtameem Xtameem 2026-01-14 06:31:43 0 498
Altre informazioni
India Perimeter Intrusion Detection and Prevention Market: Trends and Growth Outlook
The security landscape in India is undergoing significant transformation as organizations...
By Shraddha Nevase 2026-01-30 07:26:37 0 589
Giochi
Valorant Prodigy Banned on Twitch – Age Policy Explained
A young gamer from Brazil, only 11 years old, faced an unexpected ban on Twitch after streaming...
By Xtameem Xtameem 2026-01-13 13:45:50 0 566