Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Buscar
Categorías
Read More
Other
Top USA Online Poker Sites to Watch in 2024
As we approach 2024, the landscape of online poker in the United States https://plnkgame2.com...
By Garnett Jakubowski 2024-09-12 06:09:06 0 5K
Other
Future Outlook: AI Language Teacher Market Market Projections
The forward-looking AI Language Teacher Market Market Projections forecast a future...
By Shraddha Nevase 2025-09-27 10:25:03 0 246
Sports
Orioles Triple-A associate ratings 26 operates within background-ecosystem night time
A whole lot of Baltimore ability includes arrive in the course of Triple-A Norfolk earlier...
By DeShields DeShields 2024-07-05 01:25:13 0 7K
Shopping
Osk’s Agile Core: Dynamic Vinyl Production Systems
Traditional vinyl flooring production relied on segmented workflows prone to bottlenecks....
By ooo ooo 2025-08-21 04:02:43 0 1K
Shopping
Bottega Veneta Bags every fashion designer is producing an item
Birkenstock Held a Runway Show in Paris While footwear is undoubtedly a key component of pretty...
By Shiloh Copeland 2024-07-22 06:54:11 0 7K
Aldyra https://aldyra.com