Ubuntu: Upgrade FTP user to SFTP

0
26K

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
Shopping
began Bottega Veneta Arco Bags repairing a Moroccan basket she
And let not forget the home bargains either. As transgender people and gender nonconformists we...
By Priscilla Gamble 2025-01-04 10:23:35 1 3K
Shopping
Moussa Sissoko shines as Newcastle beat Chelsea
New signing Mou sa Si soko had the home debut of his dreams on Saturday as he dragged Newcastle...
By Merl Treutel 2025-05-15 02:21:14 0 2K
Other
Industrial Conveyor Systems: Market Insights and Analysis
The conveyor system market future is playing a critical role in enhancing industrial efficiency...
By Ram Vasekar 2025-09-22 09:25:20 0 287
Other
Investment Opportunities in the Nordic Plastic Packaging Film Sector
The Nordic plastic packaging film market is experiencing dynamic growth driven by regulatory...
By Ram Vasekar 2025-09-10 11:22:44 0 492
Other
Baby Feeding Bottle Market Evolution – From Trends to Transformation (2025–2031)
The global baby feeding bottle market is projected to expand steadily, recording...
By Danny King 2025-10-10 12:44:27 0 2
Aldyra https://aldyra.com