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
Shopping
gathered to survey latest Dior collection as she strolled
While hot pants will still be having their moment, boudoir style pants started trending this...
By Brylee Estrada 2025-07-21 07:21:47 0 2K
Alte
Future Outlook and Forecast for the Dishwashing Detergents Market
Hygiene has become one of the most important consumer priorities in modern households. Clean...
By Tejas Kudale 2025-11-04 11:02:26 0 814
Jocuri
Universal Beijing Resort: Wizarding World Unveiled
Universal Beijing Resort is set to unveil a brand-new theme park featuring seven captivating...
By Xtameem Xtameem 2025-12-05 06:40:16 0 251
Shopping
toast the Hermes Bags fashion shows that have mattered most
This set the tone for a week filled with nods to menswear standbys; the oversized trouser was a...
By Priscilla Gamble 2025-01-10 06:06:45 0 3K
Alte
Transparent Solar PV Glass Market Size & Forecast 2025
Transparent Solar Pv Glass, Transparent solar PV glass supports building integration,...
By Rupali Wankhede 2025-09-16 12:41:16 0 1K
Aldyra https://aldyra.com