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
Games
Streaming and Password Sharing: Cutting the Cable Cord
Streaming and Password Sharing In recent times, the debate over “cutting the cable...
By Xtameem Xtameem 2025-12-05 02:35:17 0 273
Shopping
and spent time and Goyard money to test these firsthand
I listened to dozens of opinions from friends, sifted through hundreds of customer reviews, and...
By Sierra Cherry 2024-11-25 04:51:26 0 4K
Other
TPE Dust and Poison Half Mask Main Body Market Size, Development, Key Opportunity, Application & Forecast by 2031
The TPE Dust and Poison Half Mask Main Body Market research report has been crafted with the most...
By Janvi Mane 2025-11-12 10:17:37 0 862
Games
Top VPNs for Netflix – Best Picks for Streaming Access
Top VPNs for Netflix Access Due to regional licensing rules, the content available on Netflix...
By Xtameem Xtameem 2025-12-04 07:30:53 0 264
Other
Digital Marketing Impact on Brand Awareness in the Hair Perfume Market
Consumer preferences in personal grooming are continuously evolving, with increasing emphasis on...
By Tejas Kudale 2025-11-11 09:21:04 0 809