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.

Zoeken
Categorieën
Read More
Sports
Cincinnati Reds Non-Tender Former No. 2 Pick in the MLB Draft
The Cincinnati Reds non-tendered Nick Senzel on Friday, finishing the period in the 'Queen City,...
By Bryanc Ranston 2024-03-07 06:28:59 0 11K
Shopping
Golden Goose Shoes best fashion at the menswear and couture
Ingrents to look for are vitamin C, acid, peptides, and, as these will help brighten, protect,...
By Braelyn Arellano 2024-06-05 05:59:21 0 7K
Other
Diamondbacks 3, Pittsburgh 13: My Kingdom for a Tidy Inning! - AZ Serpent Pit
So WiIliam Shakespeare's Richard III is not a great play. In the First Folio it was assigned a...
By Chad Fortners 2024-07-31 03:14:06 0 4K
Other
8 Meilleurs Idées De Recueillir Des Fonds Pour Club De Sport Incroyables
Idées de recueillir des fonds pour club de sport – Les clubs sportifs sont...
By Gulshan Whydonate 2024-11-07 15:07:52 0 4K
Shopping
Christian Louboutin Sale idea of what the present might look like
What they settled on was kind of boyish and futuristic with this pop of fluoro color, he says of...
By Rayna Walters 2024-09-08 12:16:49 0 4K