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
Shopping
For Rodgers and Liverpool these are the toughest times
For Liverpool parallels to the 09/10 season are all too Cooper Kupp Jersey galling. For Suarez...
By Merl Treutel 2025-05-15 02:10:57 0 815
Networking
High-Quality Human Hair Weave Bundles | Honest Hair Factory
Premium Human Hair Weave Bundles Experience Durability, Luster, and Natural Beauty from Honest...
By Shinnytime Shinnytime 2024-10-25 09:00:12 0 3K
Shopping
Dior Handbags easily be dressed up with a kitten heel or down
To say that women's basketball is in the midst of a cultural boom would be a vast understatement....
By Rayna Walters 2024-09-06 14:39:34 0 5K
Shopping
downtown cool like Hermes Bags Sale the designs spotted
If You are asking me leather weather is an every season type of thing but there nothing quite...
By Genesis Nguyen 2025-07-13 04:40:58 0 142
Shopping
funky fashion chunky and Dior Handbags the best oversized
the first is called premier and costs per month. At regular intervals throughout this fall, have...
By Priscilla Gamble 2025-01-12 02:45:42 0 2K