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
Alte
Capping-machine Supporting Multi-Sector Manufacturing
The packaging industry is rapidly evolving, requiring machinery that can meet diverse production...
By sean zhang 2026-02-06 08:03:59 0 880
Jocuri
Fortnite 2026 Crew Pack Leaks - Winter Skins
Leakers have recently delved into Fortnite's game files and revealed details about the upcoming...
By Xtameem Xtameem 2025-12-31 12:29:54 0 585
Jocuri
Zenless Zone Zero Update – Neue Agenten & Missionen
Heute präsentierte Hoyoverse in einer Sonderübertragung ein bedeutendes Update...
By Xtameem Xtameem 2025-12-09 03:44:52 0 630
Jocuri
Netflix New Comedy: Santa Clarita Diet Announced
Netflix Announces New Comedy Series Featuring Drew Barrymore and Timothy Olyphant In an exciting...
By Xtameem Xtameem 2026-01-16 03:08:33 0 476
Jocuri
VPNs for Perth Access – Top Picks & Secure Browsing
Top VPNs for Perth Access For those seeking a secure and versatile connection to Perth from any...
By Xtameem Xtameem 2025-12-26 00:53:13 0 605
Aldyra https://aldyra.com