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
¡Aventuras en Todoterreno con el Cuatrimoto de Carga Peruano!
Imagina una máquina que puede transformar los campos resbaladizos de Perú en una...
By Shinnytime Shinnytime 2024-11-27 09:07:45 0 3K
Alte
Air Filters Market Forecast 2025–2036: Trends, Share, Growth Drivers & Key Players
"Market Trends Shaping Executive Summary Air Filters Market Size and Share Data Bridge...
By Danny King 2025-09-26 13:14:46 0 913
Alte
Rechargeable Zinc Battery Market Growth Fueled by EV Adoption
The energy sector is a key driver in stimulating world development, bridging economic development...
By Priya Singh 2025-09-22 02:16:33 0 787
Jocuri
Encryption Debate: Matrix Secures Government Messaging
Encryption and Privacy Debate At a Matrix conference in Strasbourg last week, the conversation...
By Xtameem Xtameem 2025-10-30 00:31:48 0 318
Shopping
Bill Cowher Rex has made mockery of captain tag
Rex Ryan's decision to name special teamer a captain Thursday night Richard Dent Jersey against...
By Merl Treutel 2025-05-15 02:43:14 0 2K
Aldyra https://aldyra.com