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
Dior Sale time kicking off the brand 20th celebrations
Her question gives my story context I've been communing. Amidst the myriad runway shows currently...
By Priscilla Gamble 2024-12-28 10:48:42 0 3K
Games
Global Entertainment Highlights: Cinema & TV Updates
Global Entertainment Highlights Here's the latest edition of your go-to international...
By Xtameem Xtameem 2025-11-08 01:24:31 0 246
Games
Mother’s Quest for Daughter – True-Crime Story
Mother’s Quest for Daughter In April 2010, Cathy Terkanian received an unexpected letter...
By Xtameem Xtameem 2025-11-08 00:07:03 0 255
Shopping
How Can Eo Indicator Strips Guide Work at Hopeway AMD
In many controlled environments, Eo Indicator Strips from Hopeway AMD have become part of ongoing...
By hua fufu 2025-11-18 02:05:19 0 120
Other
Demand Forecast: Increasing Adoption in Emerging Markets
Among the most dependable areas of healthcare investment stands the global Somatostatin...
By Priya Singh 2025-11-05 15:18:05 0 302
Aldyra https://aldyra.com