Ubuntu: Upgrade FTP user to SFTP

0
25K

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.

Buscar
Categorías
Read More
Shopping
the first person to drop LDBBAGS a comment gets it
With close to three decades in the public eye has more iconic fashion moments than we can count....
By Sierra Cherry 2024-11-13 07:02:30 0 2K
Shopping
Preview Scunthorpe United v Peterborough United
The Opposition:Having won promotion from League One to the Championship with Peterborough last...
By Merl Treutel 2025-05-15 02:50:37 0 404
Shopping
pair them with a Dior structured suit vest or for a take on modern workwear
are just a sampling of those embracing. to meet the demand we're seeing brands develops...
By Remi Wells 2024-10-21 06:40:26 0 3K
Party
Motion picture Examine: Cam Ward's 2023 year
The Miami Hurricanes consist of identified their person at the quarterback issue, and it's...
By Carthy Carthy 2024-09-19 00:34:02 0 4K
Shopping
Indianapolis Colts S Daniel Scott suffered season-ending injury
safety Daniel Scott will once again mi s the entire regular season due to an injury.The...
By Merl Treutel 2025-05-15 02:19:17 0 412
Aldyra https://aldyra.com