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.

Search
Categories
Read More
Shopping
About Time Prada Sale Fashion and Duration 2020
A warm weather classic, this season woven bags capture the carefree spirit of summer flawlessly....
By Matilda Leonard 2024-06-22 09:46:58 0 8K
Shopping
Mets cant complete sweep against Marlins in disappointing end to series
Good wasnt good enough for the weekend. After winning the first two games of this series against...
By Merl Treutel 2025-10-26 04:28:32 0 555
Other
India Rubber Processing Chemicals market growth trends, volume insights & outlook 2030
India Rubber Processing Chemicals market size & insights As per recent study by Markntel...
By Rozy Desoza 2025-10-17 18:18:14 0 779
Shopping
homewares offering was revealed in Goyard Sale a series of rooms
uses his collections as platforms to examine the Black experience in the United States. It's...
By Mariah Rubio 2024-08-27 13:26:40 0 7K
Other
UAE Halal Food Market Outlook 2030: Leading Companies & Share Insights
UAE Halal Food Market Size & Insights According to MarkNtel Advisors study The future of...
By Rozy Desoza 2025-10-16 17:25:05 0 728
Aldyra https://aldyra.com