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.

Search
Categories
Read More
Other
10 Reasons to Hire a Professional SEO Service in Bangladesh
10 Reasons to Hire a Professional SEO Service in Bangladesh Short Introduction (within 50...
By Khan IT 2025-11-18 17:07:21 0 251
Crafts
Reliable Roadside Car First Aid Kit Factory Solutions by YONOELFIRSTAID
Choosing a reliable Roadside Car First Aid Kit Factory is essential for drivers seeking quality,...
By yonoel yonoel 2025-11-17 06:43:23 0 296
Shopping
Perez highlights 5-run 2-out rally in eighth with RBI double as Royals rally to beat Marlins 5-1
KANSAS CITY, Mo. (AP) Salvador Perez highlighted a five-run, two-out rally in the eighth inning...
By Merl Treutel 2025-10-22 01:45:35 0 671
Other
The Impact of Climate Change on Rubber Production
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
By Priya Singh 2025-11-13 03:19:02 0 291
Games
China Movie Theater Rules: Foreign Investment Rises
China’s culture ministry says rules allowing up to 49% foreign stakes in movie theaters...
By Xtameem Xtameem 2025-10-31 00:30:58 0 511
Aldyra https://aldyra.com