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
Networking
Benefits of Using Ammonium Nitrate for High-Yield Crops
The Ammonium nitrate is a white crystalline salt with the chemical formula NH₄NO₃,...
By Deady Cnm 2025-10-29 06:38:22 0 1K
Networking
Resilient Energy: The Enduring Legacy of the 2026 Alkaline Battery Market
As we navigate the high-tech landscape of 2026, the energy storage sector is often dominated by...
By Rupali Wankhede 2026-02-19 14:06:34 0 122
Games
Carmen Sandiego – Gina Rodriguez Leads Netflix Film
Gina Rodriguez is set to bring the iconic thief to life in a new Netflix feature film. The...
By Xtameem Xtameem 2026-02-23 20:37:05 0 10
Shopping
Prada Shoes Outlet event and its various themes have encouraged
There always something to do, from cultural things, to having a a beer served in a small glass...
By Braelyn Arellano 2024-06-04 09:59:36 0 10K
Games
Honkai: Star Rail Erfolg – Tausend sterbende Worte
Versteckte Erfolg in Styxia In Honkai: Star Rail ist der versteckte Erfolg „Tausend...
By Xtameem Xtameem 2025-12-24 05:03:09 0 493
Aldyra https://aldyra.com