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.

Search
Categories
Read More
Games
FACEIT and Movistar Riders Forge a New Chapter in Spanish Esports
In a move set to invigorate the Spanish esports landscape, FACEIT and Movistar Riders have joined...
By Rodeoneerer Rodeoneerer 2024-02-27 08:22:38 0 13K
Shopping
inviting the public Golden Goose to over and pay homage to and the
fashion in a way has treated work in the same way. finding inspiration in his life or the culture...
By Priscilla Gamble 2024-12-22 06:02:30 0 1K
Sports
It's Opening Day for the Akron RubberDucks and Lake Region Captains
We're nearly to totally operational, all-day, every-day baseball. The Guardians and their...
By DeShields DeShields 2024-07-05 01:26:10 0 6K
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 4K
Shopping
Laser Rangefinder for Hunting and Bow Hunting Range Finder | Gogogo Sport
Laser Rangefinder for Hunting and Bow Hunting Range Finder Precision, Durability, and Innovation...
By Shinnytime Shinnytime 2024-10-25 08:49:04 0 2K
Aldyra https://aldyra.com