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
Key Trends Driving the Styrene Isoprene Styrene Market in 2025
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
By Priya Singh 2025-11-06 02:35:35 0 362
Alte
Rising Aerospace and Defense Applications Strengthen the Titanium Diboride Powders Market
The industrial world is entering a new phase of advanced materials innovation, with titanium...
By Ram Vasekar 2025-10-22 10:17:33 0 630
Networking
Sustainable Manufacturing Practices in Modern Fiberglass Production
The engineered material known as Fiberglass plays a critical role across diverse industries due...
By Deady Cnm 2025-11-17 06:45:15 0 188
Shopping
Rex lands parachute jump stays mum on Kromer
The ' head coach jumped out of an airplane on Friday with the United States Army's Golden...
By Merl Treutel 2025-05-15 03:05:32 0 2K
Jocuri
Fortnite x The Simpsons Crossover: Shocking Episode Recap
The worlds of Fortnite and The Simpsons collided in an unexpected and dramatic fashion, blending...
By Xtameem Xtameem 2025-11-04 04:11:31 0 356
Aldyra https://aldyra.com