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
Forecasting the Future: Wind Power Fastener Market Growth Outlook
Manufacturing is the cornerstone of today's industry and business, enabling the production of...
By Priya Singh 2025-10-14 15:53:04 0 1K
Games
Anime Video Games – Top Picks for Every Fan
Anime's vibrant worlds and captivating storytelling have long inspired the creation of video...
By Xtameem Xtameem 2025-11-21 00:47:23 0 754
Other
Scaling the Energy Frontier: Analyzing the Off-Grid Solar Market Size with Market Research Future
The global energy landscape is undergoing a permanent transformation as decentralized power moves...
By Rupali Wankhede 2026-01-27 11:33:16 0 144
Games
Melbourne Production Cast Changes – Fresh Faces Announced
Fresh Faces Join Celebrated Melbourne Production As the enchanting theatrical journey marks its...
By Xtameem Xtameem 2026-01-03 00:48:04 0 301
Networking
Optimiser vos campagnes d'e-mail marketing avec l'aide de Chat GPT
Dans un monde numérique saturé de messages et de publicités, capter...
By ChatGPT Francais ChatGPTXOnline 2025-06-03 03:27:00 0 3K
Aldyra https://aldyra.com