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
Other
Growth Dynamics in the Food Container Market
The growing emphasis on sustainability and convenience is transforming the food container...
By Ram Vasekar 2025-09-29 12:23:02 0 1K
Games
2026 Casting Decisions: Bond, Voldemort, Doctor Who
Upcoming Casting Decisions As 2026 approaches, the entertainment industry faces several...
By Xtameem Xtameem 2026-01-13 01:39:47 0 10
Other
become millionaires and billionaires by monetizing virtual funds https://monitizationplatform.com/
We Monetize Virtual Funds and pay directly to your personal wallet no fees Monetize Virtual...
By Monitization Platform 2024-08-19 21:04:33 1 8K
Other
Saudi Arabia Ceramic Tiles Market Share, Size and Key Trends Forecast to 2032
MarkNtel Advisors, a leading market research and consulting firm, has announced the release of...
By James Williamsus 2025-12-01 10:02:33 0 1K
Games
Compressed Bedrock Farming – Wuthering Waves Guide
Compressed Bedrock Farming Following the rollout of version 3.0 in Wuthering Waves, players are...
By Xtameem Xtameem 2026-01-08 06:35:03 0 113
Aldyra https://aldyra.com