Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Jocuri
MLB The Show 25: Change Positions in Road to the Show
Navigating your career path in MLB The Show 25's Road to the Show can be challenging, especially...
By Xtameem Xtameem 2025-10-30 09:25:31 0 577
Alte
Residential & Commercial UPS Market Analysis
Residential and Commercial UPS – Smaller-scale UPS solutions for homes, offices, and...
By Rupali Wankhede 2025-09-26 06:00:38 0 954
Alte
Future of Energy: AI-Powered Robotic Drilling Market Prospects
AI-powered drilling robotics - AI-powered drilling robotics leverage machine learning algorithms...
By Rupali Wankhede 2025-11-03 16:14:35 0 497
Shopping
Golden Goose Sneakers purchase you know how that goes
Named after the street in that great aunts lived on, a niche company that will only scale...
By Priscilla Gamble 2024-12-28 04:29:34 0 3K
Jocuri
Microsoft June Security Update – Windows Vulnerabilities Fixed
Microsoft's June Security Update Tackles Widespread Windows Vulnerabilities In a significant...
By Xtameem Xtameem 2025-11-20 00:25:46 0 239
Aldyra https://aldyra.com