Ubuntu: Upgrade FTP user to SFTP

0
27KB

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.

Rechercher
Catégories
Lire la suite
Shopping
for example like it Celine Sale or not it time to welcome back the squishy
Plus, she planned to squeeze in a nap and go on a hunt for a new Sonny Angel phone accessory....
Par Priscilla Gamble 2025-01-10 09:08:35 0 4KB
Jeux
Delta Force Console Upgrades – New Features & Enhancements
Delta Force Console Upgrades Upcoming updates promise significant enhancements for Delta Force...
Par Xtameem Xtameem 2025-12-17 05:31:57 0 259
Autre
An Industry of Intelligence: The Structure of the AI in Sports Industry
To fully comprehend the data revolution sweeping through the world of athletics, it is essential...
Par Harsh Roy 2025-12-12 12:09:43 0 466
Jeux
FC 26 Coins – Fast Ways to Get Aitana Bonmatí Card
Introduction About Aitana Bonmatí Conca Aitana Bonmatí Conca has distinguished...
Par Xtameem Xtameem 2025-10-30 00:27:54 0 868
Jeux
72 Hours – Kevin Hart Leads Tim Story's New Comedy
Comedy of Digital Chaos In a twist of digital fate, a simple group message becomes the catalyst...
Par Xtameem Xtameem 2026-01-09 01:25:58 0 13
Aldyra https://aldyra.com