Ubuntu: Upgrade FTP user to SFTP

0
27χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
άλλο
Industrial Conveyor Systems: Market Insights and Analysis
The conveyor system market future is playing a critical role in enhancing industrial efficiency...
από Ram Vasekar 2025-09-22 09:25:20 0 961
Παιχνίδια
Honkai: Star Rail – Konfliktmission [Guide & Tipps]
Honkai: Star Rail – Konfliktmission In Honkai: Star Rail gibt es eine spannende...
από Xtameem Xtameem 2025-11-23 00:22:54 0 62
άλλο
Industrial Elegance Redefined: Chuanya Company's Factory Roof Concepts
In the world of industrial architecture, Factory Building Roof Tiles are far more than...
από jiangbb jiangbb 2025-11-13 05:24:54 0 307
Παιχνίδια
Fraudsters Intensify AI Scams—Holiday Shopping Alert
Fraudsters are intensifying operations ahead of the holiday shopping surge, deploying artificial...
από Xtameem Xtameem 2025-11-22 01:53:17 0 91
Networking
US Handheld Blower Market Analysis Market Dynamics and Emerging Opportunities
A comprehensive US Handheld Blower Market Analysis reveals key trends, challenges, and...
από Mayuri Kathade 2025-09-23 10:48:18 0 891
Aldyra https://aldyra.com