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.

Cerca
Categorie
Leggi tutto
Shopping
NFL Week 8 grades Joe Burrow and Bengals get an A for upsetting Titans Cowboys get D for ugly loss
If there's one upset that no one saw coming on Sunday, it was definitely the one in Cincinnati....
By Merl Treutel 2025-05-15 02:10:28 0 2K
Altre informazioni
Time Tracking Software Market Forecast, Opportunities & Emerging Trends
The global time tracking software market is characterized by a vibrant, dynamic, and intensely...
By Shraddha Nevase 2025-09-15 11:20:08 0 582
Shopping
Six things you need to know from Mondays game
If quarterback is going to compete for , he needs to learn a simple baseball slide and straighten...
By Merl Treutel 2025-05-15 01:59:45 0 2K
Altre informazioni
Pipeline Monitoring System Market Competitive Landscape – Key Players & Strategic Developments
"Executive Summary Pipeline Monitoring System Market Size and Share Forecast Global...
By Danny King 2025-09-26 10:47:40 0 302
Altre informazioni
Regional Insights: Construction Equipment Rental Market Across the Globe
Technology is revolutionizing the construction equipment rental market by enhancing efficiency,...
By Ram Vasekar 2025-09-16 11:26:37 0 366
Aldyra https://aldyra.com