Ubuntu: Upgrade FTP user to SFTP

0
26K

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
steps fashion week could Dior take to increase its international reach
And with four collections a year of three deliveries each we made a lot of them. when I first...
By Priscilla Gamble 2024-12-19 06:34:23 0 2K
Shopping
Golden Goose button through A line mini skirt
My first request for this came through last week and Golden Goose Sky Star Sneakers as began to...
By Finley York 2025-08-03 05:53:24 0 848
Shopping
designers if you want Golden Goose to give a piece a more
Colors and patterns range from vibrant to understated, giving the brand a wearability that both...
By Genesis Nguyen 2025-07-22 14:06:55 0 991
Alte
Rise to the Top: Bet on the UK’s Most Trusted Football Sites!
Rise to the Top: Bet on the UK’s Most Trusted Football Sites! For football enthusiasts...
By Nguyen Cuong 2024-12-21 01:49:19 0 2K
Alte
a look especially in sprightly Celine shades of green or red
meaning it prime time to add transitional ladylike preppy barn and other lightweight silhouettes...
By Remi Wells 2024-10-20 14:54:33 0 4K