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
Games
Ella Toone: Star de Winter Wildcards
Ella Toone: Star de Winter Wildcards Une nouvelle recrue fait son apparition dans la DCE de FC...
By Xtameem Xtameem 2026-01-01 23:50:44 0 477
Games
Monopoly GO Rebel Rumble – Rewards & Event Guide
After the conclusion of the X-Wing Bling event, Monopoly GO has launched a fresh competition...
By Xtameem Xtameem 2025-11-12 01:27:33 0 1K
Games
Roblox Age Verification: Global Expansion & Safety
Roblox has recently expanded its age verification measures to include all regions worldwide,...
By Xtameem Xtameem 2026-01-11 02:02:33 0 407
Games
The Recruit Season 2 Finale: Explosive Ending Unpacked
Season 2 Finale Breakdown The Explosive Finale of "The Recruit" Season 2 Unpacked Noah...
By Xtameem Xtameem 2026-01-06 09:36:52 0 408
Shopping
Whats next for Deebo Samuel DK Metcalf extension makes 49ers star last WR up for new contract
And then there was one.With DK Metcalf signing a with the Seahawks on Thursday, only one star...
By Merl Treutel 2025-05-15 02:51:06 0 3K
Aldyra https://aldyra.com