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.

Search
Categories
Read More
Shopping
condition doesn't play as Goyard big of a factor anymore either
It also free for lenders to join. when he and started after meeting at parsons he found to be a...
By Sierra Cherry 2024-11-17 06:57:22 0 5K
Other
Turkey Cryptocurrencys Market Report 2034 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
Turkey Cryptocurrencys Market Overview 2026-2034 According to the latest report by The Report...
By Lily Desouza 2025-11-06 18:31:47 0 761
Games
PlayOn and Kodi Integration: Setup & VPN Tips
PlayOn and Kodi Integration PlayOn functions uniquely as a content acquisition tool rather than...
By Xtameem Xtameem 2025-11-11 02:03:11 0 775
Games
nba2king The Impact of MT Currency on Your Gameplay
As the excitement builds for NBA 2K26, fans and gamers alike are eager to explore the latest...
By Joenxxx Xxx 2025-12-20 00:13:41 0 276
Other
a little bit more polished a little Golden Goose Sneakers bit more put together
meanwhile is also evolving. She grown up a bit and she feeling a little bit more mature in her...
By Emilia Hurley 2024-09-25 06:01:50 0 6K
Aldyra https://aldyra.com