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
Rising Demand from Coatings Sector Boosts the Neopentyl Glycol Market
The Neopentyl Glycol Industry Trends reflect a clear shift toward sustainability, innovation, and...
By Ram Vasekar 2025-10-29 11:13:29 0 650
Alte
Driving Innovation Through Predictive Analytics Market Expansion
  The Predictive Analytics Market growth is redefining the way enterprises approach...
By Sssd Ddssa 2025-09-24 05:32:27 0 1K
Alte
Middle East Cement Market Trends: Growth, Share, Value, Size, and Analysis By 2030
As per MarkNtel The Middle East Cement Market size was estimated at around 184 Million...
By Jackson Harris 2025-11-10 07:20:34 0 473
Crafts
Why are traceability packaging and pilot tests crucial for wire sourcing
In conversations about welding consumables and supply chain resilience, Aluminum Tig Wire...
By Jason Robby 2025-09-23 07:34:13 0 1K
Alte
Everyday Conflicts Resolved: Why Small Claims Matter in Civic Life
Introduction In the realm of civil justice, small claims courts embody a rare blend of simplicity...
By Cbcsmallclaim Claim123 2025-09-30 22:38:23 0 1K
Aldyra https://aldyra.com