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.

Zoeken
Categorieën
Read More
Shopping
Lest we forget much Saint Laurent Sale of work examined
I've been a fan of for ages since before sustainability was a pillar of the brand and the work...
By Mariah Rubio 2024-08-27 11:07:22 0 5K
Shopping
Oklahoma recruit decommits after racist video surfaces
Jean Delance, a highly touted offensive lineman from Mesquite, Texas, in the 2016 recruiting cla...
By Merl Treutel 2025-05-15 01:59:10 0 777
Shopping
GGDB Shoes photographed in leather pants made to look like
And with good reason according to an official Request For Data and Information on Trinidad and...
By Shiloh Copeland 2024-07-25 08:21:43 0 6K
Shopping
Christian Dior Handbags a strict cap on my fashion spending this year
For sustainable care to preserve the product characteristics and reduce microfiber shedding, we...
By Shiloh Copeland 2024-07-22 10:33:46 0 7K
Shopping
Goyard international buyers were drawn by the dual appeal of
So lightweight and ever so chic! I have the clear but love the cola and verde also I may just...
By Emerie Houston 2024-10-09 08:02:48 0 4K