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
Harry Potter and the Sorcerer’s Stone – 2026 Immersive Release
Warner Bros is strengthening its collaboration with Cosm, the operator of immersive...
By Xtameem Xtameem 2025-11-23 02:17:22 0 1K
Jocuri
Sign Stealing Controversy: Michigan Football Scandal
Sign Stealing Controversy "My entire existence shifted overnight," Connor Stalions laments in...
By Xtameem Xtameem 2025-11-02 01:42:33 0 1K
Jocuri
Netflix's New CMO: Jackie Lee-Joe
Jackie Lee-Joe has been appointed as the new Chief Marketing Officer of Netflix. Her background...
By Xtameem Xtameem 2026-03-22 00:56:52 0 115
Alte
Industrial Phosphate Market: Advancements in High-Purity Production and Innovative Manufacturing Technologies
The industrial phosphate market is witnessing robust growth as demand surges from agriculture,...
By Harshal J72 2025-12-15 11:23:13 0 1K
Alte
Innovative Material Advancements Strengthen the PTFE Membrane Market
The PTFE Membrane Market has gained strong momentum worldwide due to the rising need for advanced...
By Ram Vasekar 2025-11-10 08:24:05 0 1K
Aldyra https://aldyra.com