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
Kenny Pickett injury update Mike Tomlin says Steelers QB will play if cleared from concussion protocol
The Steelers were getting a spark from Kenny Pickett in their Week 6 game against the Buccaneers,...
By Merl Treutel 2025-05-15 02:35:54 0 425
Home
Classification and characteristics of EPDM rubber sheets
In the industrial industry, EPDM rubber sheet is mainly used in anti-corrosion, wear...
By Aldyracom Aldyracom 2024-04-17 07:42:05 0 9K
Networking
monetize virtual funds app visit www.virtualwalletfunds.com monetize virtualfunds whatsapp +447490927842
From Virtual to Reality: Monetizing Your Online Funds"+447490927842Visit our website...
By Spido Lapy 2024-07-21 09:59:01 1 22K
Shopping
Belichick on Brady Rodgers They both wear No. 12
Asked to name the similarities he sees between and , coach on Wednesday provided one of his cla...
By Merl Treutel 2025-05-15 02:55:05 0 391
Religion
Tampa Bay Buccaneers vs Dallas Cowboys: Wild Card sneak peek
The Tampa Bay Buccaneers have actually placed the routine period behind them. It no more matters...
By Staubach Mcgriffs 2024-09-20 01:03:15 0 4K
Aldyra https://aldyra.com