Ubuntu: Upgrade FTP user to SFTP

0
28χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
άλλο
Natural Mineral vs. Purified Water: Market Insights
The consumer goods industry is always a reflection of global consumption habits, driven...
από Priya Singh 2025-09-17 14:58:29 0 2χλμ.
Παιχνίδια
Squid Game Season 2 Preview – Gi-hun’s Transformation
Squid Game Season 2 Preview In the recently unveiled preview for "Squid Game" Season 2, fans...
από Xtameem Xtameem 2025-11-26 00:30:19 0 839
Παιχνίδια
Netflix March Lineup: Binge-Worthy Shows & Movies
Get ready for a binge-worthy March on Netflix! The streaming giant is dropping a fresh lineup of...
από Xtameem Xtameem 2026-01-19 04:23:55 0 431
Shopping
What Role Does Gusu Chocolate Coating Machine Play In Production Systems
Gusu Chocolate Coating Machine technology is transforming how modern confectionery facilities...
από jsszgusufood jsszgusufood 2026-01-15 03:02:18 0 641
άλλο
Key Drivers Behind the Growth of the Original Equipment Manufacturer Coating Market
The demand for durable and high-performance coatings is intensifying, driven by the growing...
από Ram Vasekar 2025-10-22 12:31:56 0 1χλμ.
Aldyra https://aldyra.com