Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Căutare
Categorii
Citeste mai mult
Alte
Safety Concerns of Driving Without Windshield Repair in Calgary
Introduction A windshield is more than just a protective glass barrier; it is a vital component...
By MoreThan Panel 2025-09-17 08:43:18 0 897
Alte
more because of Golden Goose the ways it is being styled
did you hear about this. was spotted wearing a paint splattered version on the set of And Just...
By Marlee Ingram 2025-10-15 07:04:55 0 602
Alte
Future of Energy: AI-Powered Robotic Drilling Market Prospects
AI-powered drilling robotics - AI-powered drilling robotics leverage machine learning algorithms...
By Rupali Wankhede 2025-11-03 16:14:35 0 217
Alte
Golden Goose Francy Sneakers story the trucker jacket over
When she recalls his plaid blazer, the smell the taste of martinis come to mind. She kept it as a...
By Margot Poole 2025-05-09 09:49:00 0 2K
Health
Arizona Region trips Washington soon after Browns 30-position outing
Arizona Region Solar Devils at Washington HuskiesSeattle; Thursday, 11 p. m. ESTBOTTOM LINE:...
By Bregman Alex 2024-10-09 08:42:40 0 5K
Aldyra https://aldyra.com