Ubuntu: Upgrade FTP user to SFTP

0
24K

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
While many Hermes associate the with with his virtual avatar the term
I'm a shopping expert; I tell people which things are worth buying it's my job. beginning with...
By Henley Pierce 2024-11-07 14:57:31 0 2K
Sports
Cardinals Player Named Gold Glove Award Finalist As Nolan Arenado's Touch Ends
The St. Louis Cardinals have yet another finalist for a National League Gold Glove honor, this...
By Bryanc Ranston 2024-03-07 06:29:31 0 11K
Film
monetize virtual funds app visit www.virtualwalletfunds.com monetize virtualfund
www.virtuawalletfunds.com In the rapidly evolving world of cryptocurrencies, Monetize Virtual...
By Spido Lapy 2024-07-21 10:26:01 0 6K
Home
5 things to understand about brand-new Eagles security Kevin Byard
The Philadelphia Eagles traded for All-Pro safety and security Kevin Byard on Monday! We already...
By Carthy7 Carthy7 2024-11-16 02:31:01 0 2K
Literature
What can gps car tracker magnetic do?
1. Use gps car tracker magnetic to locate and track your important assets. Let you no...
By Aldyracom Aldyracom 2024-04-17 07:23:43 0 8K