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.

Site içinde arama yapın
Kategoriler
Read More
Other
The Role of Urbanization in Boosting the Bidets Market Expansion
Urbanization profoundly impacts consumer behaviors, living standards, and infrastructure...
By Tejas Kudale 2025-11-05 12:27:42 0 1K
Other
Ultra-Pure Water Market Opportunities in Semiconductor Manufacturing
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
By Priya Singh 2025-09-26 03:15:12 0 1K
Oyunlar
Mother’s Quest for Daughter – True-Crime Story
Mother’s Quest for Daughter In April 2010, Cathy Terkanian received an unexpected letter...
By Xtameem Xtameem 2025-11-08 00:07:03 0 829
Other
Emergency PVC Tarpaulin Resilience
In the realm of modern architectural design and emergency response, where lightweight, rapidly...
By sean zhang 2025-12-26 05:24:08 0 352
Shopping
Mets bullpen gets major makeover with Ryan Helsley Tyler Rogers trade deadline move
See Also SAN DIEGO With one day still to go before the trade deadline, there is time for David...
By Ebony Ortiz 2025-11-18 02:20:38 0 934
Aldyra https://aldyra.com