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.

Căutare
Categorii
Citeste mai mult
Jocuri
Umbrella Academy Universe: Comics Continue the Saga
Umbrella Universe Expands Although season 4 closed one chapter of The Umbrella Academy on...
By Xtameem Xtameem 2025-10-31 04:09:33 0 606
Jocuri
Genshin Impact : Guide de la quête Guili
Guide de la quête Guili Certaines missions dans Genshin Impact peuvent présenter un...
By Xtameem Xtameem 2025-10-31 03:02:01 0 629
Alte
Analyzing the Evolving Dynamics of Global OTT Market Share
In the high-stakes and content-driven "streaming wars," the battle for OTT Market...
By Harsh Roy 2025-10-15 09:36:02 0 1K
Shopping
Royals aim to break 3-game skid take on the Marlin
Miami Marlins (27-50, fifth in the NL East) vs. Kansas City Royals (42-37, third in the AL...
By Ebony Ortiz 2025-11-18 02:16:54 0 315
Jocuri
Spain's Cinema Reform: FAPAE Pushes for European Quotas
Spain's cinema sector faces intensified pressure for reform from influential lobby group FAPAE....
By Xtameem Xtameem 2025-11-02 00:34:54 0 600
Aldyra https://aldyra.com