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
Tampa Bay Buccaneers signing kicker Connor Barth
is headed back to Tampa Bay. The are Ronald Bolanos Jersey signing the kicker following his...
By Merl Treutel 2025-05-15 02:57:04 0 606
Crafts
Scale Production Effortlessly with Nante's Modular Socket Systems
In dynamic manufacturing environments where rapid change and varied power demands coexist, the...
By Lars xinnyi 2025-06-26 08:39:10 0 340
Shopping
Fabio Capello Why Im still sat on the fence
Along with scores of England fans around the country I sat glued to my web browser on the...
By Merl Treutel 2025-05-15 02:00:15 0 663
Shopping
22ct Gold Ladies Band: A Perfect Symbol of Elegance and Commitment
When it comes to timeless jewelry, the 22ct gold ladies band stands out as a...
By A1j Jewellers 2025-01-21 11:24:13 1 1K
Shopping
49ers vs. Ravens Prediction Odds Picks - Dec 25
The (11-3) and (11-3) will meet, with both teams coming off victories -- the 49ers have won six...
By Merl Treutel 2025-05-15 02:32:28 0 682
Aldyra https://aldyra.com