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.

Suche
Kategorien
Mehr lesen
Spiele
Best VPNs for Netflix India – Top Picks & Features
Best VPNs for Netflix India Accessing your preferred Netflix library while traveling to India...
Von Xtameem Xtameem 2025-12-07 01:12:50 0 494
Andere
Asia-Pacific Coated Paper Market Demand Analysis: Market Opportunities and Challenges 2025–2036
"Executive Summary Asia-Pacific Coated Paper Market Opportunities by Size and Share...
Von Danny King 2025-10-16 12:29:02 0 1KB
Spiele
Monopoly Go Account Guide Answers to All the You Need to Know
monopoly go cards, a popular board game for mobile devices will require players to control their...
Von Some Cats 2025-04-07 06:01:45 0 3KB
Spiele
Hugh Laurie as Dumbledore: Audible's Potter Saga
Hugh Laurie steps into Hogwarts' hallowed halls, bringing Dumbledore's wisdom to Audible's new...
Von Xtameem Xtameem 2025-11-11 06:32:07 0 869
Spiele
Netflix August Highlights – Top Picks This Week
Netflix August Highlights Netflix's Fresh August Offerings: Must-Watch Content This Week As...
Von Xtameem Xtameem 2025-11-24 00:27:14 0 718
Aldyra https://aldyra.com