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
Jocuri
Netflix Memorabilia – Buy Authentic Show Collectibles Now
Netflix Memorabilia Now Available for Fans to Purchase Exciting news for Netflix enthusiasts!...
By Xtameem Xtameem 2025-11-11 05:45:38 0 562
Jocuri
Harry Potter HBO Series Set – Royal Family's Private Tour
Royal Family Enjoys Private Tour of New 'Harry Potter' HBO Series Set Prince William and Kate...
By Xtameem Xtameem 2025-10-31 02:53:49 0 672
Jocuri
Netflix VPN – Unlock Global Content & Access Any Library
Unlocking Global Netflix Content Across the globe, Netflix libraries hold unique treasures...
By Xtameem Xtameem 2025-12-01 01:32:47 0 243
Networking
Cost-Saving Advantages of Asia-Pacific Roof Insulation
The Asia-Pacific Roof Insulation is a rapidly growing sector within the region’s...
By Deady Cnm 2025-10-09 09:29:42 0 1K
Shopping
The Newest Styles Prada Shoes
The Newest Styles Prada Shoes https://www.pradassaler.com
By Sienna King 2025-06-23 10:35:34 0 3K
Aldyra https://aldyra.com