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.

Site içinde arama yapın
Kategoriler
Read More
Oyunlar
Mystbloom 2.0 Valorant Skins – Release, Weapons, Colors
Released in early 2024, the Mystbloom skin collection quickly captured the hearts of Valorant...
By Xtameem Xtameem 2025-12-04 03:14:43 0 311
Health
Comprehensive Study on the Immune Checkpoint Inhibitors Market: Forecast (2025–2030)
As per MarkNtel Advisors the Immune Checkpoint Inhibitor Market size was valued at...
By James Williamsus 2025-11-06 06:48:23 0 1K
Oyunlar
UEFA Women's Champions League – ESPN Coverage Details
Disney Taps Football Focus Presenter for UEFA Women's Champions League Coverage ESPN is set to...
By Xtameem Xtameem 2025-10-30 00:44:47 0 838
Oyunlar
AFK Journey Tier List – Top Heroes Ranked [2024]
Top Heroes Overview AFK Journey is an eye-catching idle role-playing game crafted by Farlight...
By Xtameem Xtameem 2025-11-14 00:30:18 0 658
Shopping
wanted Golden Goose Outlet to build this world around a haircut
Later, during the women's presentations, the trickle effect was clear, notably in Paris. On the...
By Mariah Rubio 2024-09-02 04:13:53 0 6K