Ubuntu: Upgrade FTP user to SFTP

0
28K

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.

Căutare
Categorii
Citeste mai mult
Alte
Yuanda Clean Room Solution: Integrated Systems for Sensitive Production
Maintaining controlled environments is critical in sensitive production areas. Clean Room...
By tion puri 2025-12-19 02:19:48 0 769
Jocuri
Top Netflix Picks – Trending Movies & Must-See Films
Top Netflix Picks Navigating the vast ocean of streaming content can be overwhelming, especially...
By Xtameem Xtameem 2025-11-10 02:03:24 0 1K
Health
Vidalista 20 mg – Trusted Support for Lasting Strength and Natural Confidence
Introduction: Vidalista 20 mg is a widely recognized medication designed to support men who...
By Irene Joshi 2025-10-09 11:32:41 0 2K
Party
Emission & Safety Testing Trends Growth Drivers Outlook Automotive Market 2025 Report Guide
  Emission and safety testing are essential pillars of the automotive industry’s...
By Rushi Dalve 2025-12-24 11:19:17 0 764
Jocuri
Proton Pass Review – Secure Password Manager Guide
Proton Pass Overview In evaluating Proton Pass, we focus on its security features, privacy...
By Xtameem Xtameem 2025-11-07 00:24:27 0 1K
Aldyra https://aldyra.com