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.

Rechercher
Catégories
Lire la suite
Jeux
Dune: Awakening – Explore Arrakis in a New Survival Game
Dune: Awakening takes players on an extraordinary journey into a universe that captures the...
Par Xtameem Xtameem 2025-12-04 05:41:49 0 658
Jeux
Windows 7 Speed - Microsoft's Perception Battle
Windows 7: Perception Battle in the Speed Arena Microsoft's marketing strategy for Windows 7...
Par Xtameem Xtameem 2025-12-31 00:34:44 0 282
Shopping
opened with a performance by a Goyard vape artist who blew
And then there always is the key to everything I sound boring when I talk about it but I love...
Par Remi Wells 2024-10-23 08:37:36 0 5KB
Autre
Regional Insights: North America Molded Foam Market Forecast
Molded foam has become a pivotal material in industries demanding lightweight, protective, and...
Par Shubham Gurav 2026-01-19 06:17:51 0 309
Autre
Asia-Pacific Emerges as a Key Growth Hub for Premium Cosmetics
The expanding luxury beauty products market size contributes significantly to the overall growth...
Par Tejas Kudale 2025-11-27 11:57:52 0 1KB
Aldyra https://aldyra.com