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
Sports
Connecticut Sunshine star requests exchange between doubtful offseason
Marina Mabrey is made up of purchased a exchange against Connecticut, ESPN Alexa Phillippou...
By Okafor Okafor 2025-07-22 08:01:53 0 2K
Jocuri
Wizards Unite Dark Arts Month: October Events Guide
October Brings Spooktacular Challenges to Wizards Unite Game Prepare your wands and polish your...
By Xtameem Xtameem 2025-11-19 01:12:54 0 839
Jocuri
EA Sports FC 26 Event-Kalender – Alle Events 2025/26
In unserer Übersicht zum EA Sports FC 26 Event-Kalender erfahrt ihr, welche spannenden...
By Xtameem Xtameem 2025-12-03 11:50:29 0 703
Jocuri
Netflix My List: New Personalized Feature
We are excited to unveil a new feature called “My List” on Netflix, designed to...
By Xtameem Xtameem 2026-01-14 02:36:53 0 314
Alte
How Energy and Utility Analytics Is Transforming Grid Operations and Efficiency
The distribution of market share within the energy and utility analytics sector reveals important...
By Shraddha Nevase 2026-01-28 07:05:41 0 407
Aldyra https://aldyra.com