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.

Search
Categories
Read More
Games
Claustrophobic Thriller – Carry-On Review & Insights
Claustrophobic Thriller Escalates Jaume Collet-Serra crafts tension within confined spaces yet...
By Xtameem Xtameem 2025-12-12 02:26:35 0 625
Other
Rising Demand and Key Drivers in the Middle East & Africa Automotive Air Filter Market
Middle East & Africa Automotive Air Filter Market Overview Markntel Advisors' latest...
By James Williamsus 2025-10-24 09:40:15 0 1K
Other
Digital Payments and Smart Stores Lift Duty Free Retail Growth
The global travel retail ecosystem has evolved significantly over the past decade, supported by...
By Tejas Kudale 2026-02-17 09:14:32 0 265
Games
Netflix VPN Guide: Hide My Ass vs. NordVPN Comparison
Netflix enforces regional content restrictions by detecting users' IP addresses during access....
By Xtameem Xtameem 2025-12-10 01:47:23 0 657
Games
Gift Cards – Top Picks for Holiday Gifting [2024]
Best Gift Card Picks Finding the ideal present during the holiday season can often feel...
By Xtameem Xtameem 2025-12-30 19:50:59 0 446
Aldyra https://aldyra.com