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
The Night Agent Season 3: Peter's Exhaustion Revealed
Gabriel Basso Reveals Peter's Exhaustion Heading into The Night Agent Season 3 In an exclusive...
By Xtameem Xtameem 2026-02-17 02:17:09 0 443
Jocuri
Pokémon TCG Mega Rising Missions – Full List & Guide
Pokémon TCG Mega Rising Missions The latest addition to the Pokémon TCG Pocket...
By Xtameem Xtameem 2025-11-21 00:51:57 0 1K
Jocuri
Bridgerton Season 4: Katie Leung's Araminta - A Complex Villain
Spoiler alert: This discussion reveals details from the first part of Bridgerton's fourth...
By Xtameem Xtameem 2026-03-01 15:02:53 0 415
Jocuri
Rsorder OSRS Ranged Gear Progression: From Early Game to Endgame
Rather than structuring upgrades around level milestones alone, the progression outlined here...
By Joenxxx Xxx 2026-02-11 00:09:27 0 793
Alte
Compact LV Switchgear Market Growth & Trends 2025
Compact Lv Switchgear, Compact LV switchgear provides space-saving,  efficient,  and...
By Rupali Wankhede 2025-09-16 12:20:44 0 2K
Aldyra https://aldyra.com