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
Shopping
Golden Goose Sneakers Outlet whom have since decamped to Paris
This workhas been in my closet for a few years and is a tried and true goldengoosessneaker.com...
By Finley York 2025-08-08 10:45:59 0 2K
Networking
EPR Registration: Building a Greener Future Through Producer Responsibility
As the world battles growing waste and pollution problems, governments and industries are...
By Ganesh Choudhary 2025-10-28 07:55:29 0 299
Health
Exploring Emerging Sickle Cell Disease Market Trends
The Sickle Cell Disease Market trends reflect the industry’s rapid transformation, with...
By Divakar Kolhe 2025-09-25 09:50:38 0 673
Networking
South Korea Sheet Metal in Aerospace and Heavy Engineering
The South Korea Sheet Metal is a critical sector within the country’s highly...
By Deady Cnm 2025-10-09 09:24:49 0 553
Alte
Naishi: A Welded Regulating Ball Valve Supplier You Can Rely On, Right?
In the dynamic landscape of industrial manufacturing, the demand for high-performance valves that...
By Faqiu Qiufa 2025-10-31 07:26:40 0 145
Aldyra https://aldyra.com