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.

Căutare
Categorii
Citeste mai mult
Jocuri
Week 7 Battle Overview – Key Tasks & Objectives
Week 7 Battle Overview This piece provides a comprehensive overview of all the tasks and...
By Xtameem Xtameem 2026-01-20 00:08:48 0 467
Jocuri
Honkai Star Rail: Herausforderung & Trophäe-Guide
Herausforderung in Honkai Star Rail In Honkai: Star Rail schlüpfen die Spieler in die Rolle...
By Xtameem Xtameem 2026-01-30 09:58:04 0 386
Alte
Luxury Grooming Culture Supporting Beard Oil Market Expansion
The global grooming industry has increasingly embraced luxury products as consumers become more...
By Tejas Kudale 2026-03-06 09:00:59 0 76
Literature
Why Every Foreign Manufacturer Needs a BIS Certificate for the Indian Market
IntroductionIndia is one of the most promising destinations for international trade. However, no...
By Sun Certifications India 2026-02-14 06:51:12 0 461
Jocuri
Godzilla Anime Series - Netflix Original Debut
In a groundbreaking move, Netflix has announced the upcoming debut of an original anime series...
By Xtameem Xtameem 2026-01-26 03:59:58 0 455
Aldyra https://aldyra.com