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
Alte
What Is Driving the Growth of the China Silicon Anode Material Battery Market from 2026 to 2032?
China Silicon Anode Material Battery Market Outlook (2026-2032) MarkNtel Advisors provides an...
By Rozy Desoza 2025-10-23 18:30:58 0 1K
Jocuri
T-Mobile UK Data Theft: Ex-Employees Fined £73,700
Two former employees of T-Mobile UK have recently been fined a substantial sum after being found...
By Xtameem Xtameem 2026-03-25 01:44:30 0 193
Alte
Asia Pacific Emerging as a Key Pet Supplies Market Hub
The Asia Pacific region is becoming one of the fastest-growing markets for pet supplies. Rapid...
By Tejas Kudale 2026-03-12 10:35:13 0 483
Shopping
Whitworth Wish I handled contract comments better
Prior to the draft, dared the . Marvin Lewis followed by drafting offensive tackles in the first...
By Merl Treutel 2025-05-15 02:29:01 0 3K
Crafts
Prepare for Emergencies with Trauma First Aid Kit Manufacturer Yonoel
When it comes to safety and preparedness, a Trauma First Aid Kit Manufacturer Yonoel is a...
By yonoel yonoel 2026-03-10 03:00:36 0 560
Aldyra https://aldyra.com