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.

Căutare
Categorii
Citeste mai mult
Health
weed delivery Washington state website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
By Thcweed Express 2025-11-26 16:04:35 0 702
Jocuri
Rainbowdrop Crystal Locations – Genshin Impact Guide
Rainbowdrop Crystal Locations Rainbowdrop Crystals serve as essential crafting components within...
By Xtameem Xtameem 2025-11-07 00:52:29 0 776
Alte
Kuwait Courier Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
Kuwait Courier Market Overview 2026-2032 According to the latest report by The Report Cube,...
By Lily Desouza 2025-11-07 18:36:46 0 756
Jocuri
Harry Potter Holiday Collab - Epic Games Update
Wizarding Holiday Collab Exciting news is brewing in the Epic Games universe this holiday...
By Xtameem Xtameem 2025-12-18 03:37:30 0 119
Shopping
Think of your Golden Goose favorite vintage tee
Publishers set the rules and curate the experience. The Future singer also wore a ruffled crop...
By Simone Andersen 2025-11-09 02:59:49 0 762
Aldyra https://aldyra.com