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.

Zoeken
Categorieën
Read More
Other
Wiper Blade Coatings Market Set to Accelerate with Growing Automotive Demand
The Wiper Blade Coatings Market is poised for significant growth over the coming years,...
By Caitan Cruz 2026-01-08 13:46:21 0 18
Other
Adhesion Laminated Surface Protection Films Market : Insights, Key Players, and Growth Analysis 2025 –2032
"Executive Summary Adhesion Laminated Surface Protection Films Market: Share, Size &...
By Data Bridge 2025-11-04 03:45:52 0 1K
Shopping
How to Choose Aircraft Aluminum Sheet Thickness?
Selecting the right thickness of aircraft aluminum sheets is critical for ensuring aircraft...
By Aluminium Lanren 2025-09-23 06:22:49 0 2K
Spellen
Security Blanket Tech – Comfort & VPN Access Combined
Innovative Tech Collaboration Brings Comfort to Homesick Individuals In a unique fusion of...
By Xtameem Xtameem 2025-12-13 04:11:24 0 442
Other
Understanding Market Share in the Expanding Data Center Network Infrastructure Market
  The Data Center Network Infrastructure Market plays a crucial role in enabling...
By Sssd Ddssa 2025-11-14 07:43:18 0 725
Aldyra https://aldyra.com