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
Monopoly GO Star Wars: Rebel Racers Guide & Tips
The collaboration between Monopoly GO and Star Wars introduces a new limited-time minigame...
By Xtameem Xtameem 2025-12-13 00:21:03 0 534
Jocuri
Valorant Harbor Rework 11.10 – Abilities & Updates
In the upcoming Valorant update 11.10, players can look forward to a comprehensive overhaul of...
By Xtameem Xtameem 2025-12-13 03:31:09 0 556
Jocuri
Top Spiele 2025 – Die beliebtesten Games in Deutschland
Das Jahr 2025 war ein herausragendes Jahr für die Gaming-Branche in Deutschland,...
By Xtameem Xtameem 2026-01-14 00:48:00 0 384
Jocuri
Netflix Original Films: Strategic Shift & New Releases
Netflix's Strategic Shift: Focusing on Original Films and Exclusive Content Our subscribers have...
By Xtameem Xtameem 2026-01-14 02:29:44 0 384
Shopping
Efficient Designs by Cige Led Triproof Luminaire
An innovative CIGE Led Triproof Luminaire delivers fixtures built to resist water, dust, and...
By Cige Cige 2026-01-15 02:26:20 0 587
Aldyra https://aldyra.com