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
Alte
Testing Inspection and Certification (TIC) Market Growth, Trends, and Future Outlook
The global Testing, Inspection, and Certification sector presents a unique market structure,...
By Shraddha Nevase 2025-09-15 11:48:57 0 2K
Health
Anterior Cervical Fusion Surgery
In the world of spinal surgery, alleviating neck pain and restoring mobility often requires more...
By Donald Gainey 2025-12-03 10:09:48 0 379
Jocuri
RIAA Denies DRM Is Dead – Jonathan Lamy Responds
In a recent development, Jonathan Lamy, the chief spokesperson for the Recording Industry...
By Xtameem Xtameem 2025-12-11 02:13:35 0 142
Jocuri
Genshin Impact – Mysterious Hound Lore & Survival Guide
No one truly understands the reason behind the haunting howls of the mysterious hound under the...
By Xtameem Xtameem 2025-10-29 05:19:31 0 770
Jocuri
Genshin Impact Jahoda Guide – New Anemo Bow Healer
In the latest update for Genshin Impact, players are introduced to Jahoda, a new 4-star...
By Xtameem Xtameem 2025-11-20 00:35:34 0 510
Aldyra https://aldyra.com