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.

Suche
Kategorien
Mehr lesen
Andere
Navigating the Legal Landscape: A Guide to Lawyers in Dubai
Dubai, a global hub for business and tourism, presents a dynamic legal environment that blends...
Von Ganesh Choudhary 2025-10-26 07:42:04 0 895
Spiele
Netflix Content Highlights – Top Picks & New Releases
Netflix Content Highlights Just refreshed my Netflix queue and noticed a massive drop of 29 new...
Von Xtameem Xtameem 2025-12-02 00:27:29 0 240
Andere
Paper Straw Market Overview: Size, Share, Opportunities & Future Projections
"Executive Summary Paper Straw Market Value, Size, Share and Projections Global paper...
Von Danny King 2025-09-26 09:53:06 0 1KB
Shopping
special sale Golden Goose Sale to celebrate their 10 years
It should be said that this look, like its cousins 鈥?0s and in sleaze, is the jurisdiction of the...
Von Matilda Leonard 2024-06-23 05:24:36 0 8KB
Shopping
Popular Hermes Shoes Online
Popular Hermes Shoes Online Hermesshoessale.com
Von Simone Andersen 2025-11-17 08:01:41 0 720
Aldyra https://aldyra.com