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.

Căutare
Categorii
Citeste mai mult
Crafts
Technical Support Models from Chinese and European Welding Wire Producers
In light of shifting manufacturing landscapes and climate action headlines, many fabrication...
By Jason Robby 2025-08-04 08:07:15 0 905
Religion
Tampa Bay Buccaneers vs Dallas Cowboys: Wild Card sneak peek
The Tampa Bay Buccaneers have actually placed the routine period behind them. It no more matters...
By Staubach Mcgriffs 2024-09-20 01:03:15 0 5K
Shopping
But let Bottega Veneta back up for a minute and explain
Perhaps it's why I haven't gotten rid of his other stuff. In this other life, he's still coming...
By Sierra Cherry 2024-11-18 08:55:08 0 3K
Shopping
Aston Villa Should Be Challenging Not Scrapping
I love Aston Villa fans, i really do. They are light hearted in there own way. If they lose they...
By Merl Treutel 2025-05-15 02:26:36 0 1K
Shopping
Redskins blast Bills to stay atop NFC East
The (7-7) remain in the driver's seat of the NFC East after knocking off the on Sunday in a game...
By Merl Treutel 2025-05-15 02:27:05 0 1K
Aldyra https://aldyra.com