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
Other
India Diesel Generator Market Outlook 2030: Leading Companies & Share Insights
India Diesel Generator Market Size & Insights According to MarkNtel Advisors study...
By Rozy Desoza 2025-10-15 18:15:54 0 347
Games
Fortnite Bart Simpson Skin: Release Date & Season 6 News
Fortnite is preparing to introduce an exciting new addition with the upcoming release of the...
By Xtameem Xtameem 2025-10-30 04:14:32 0 39
Other
Regional Analysis: Asia-Pacific Leads Smart Water Cooler Adoption
The consumer goods industry is always a reflection of global consumption habits, driven...
By Priya Singh 2025-10-13 06:02:41 0 369
Games
Dual Development Strategy: Books to Screens Success
Dual Development Strategy Hollywood’s appetite for stories that already have readers is no...
By Xtameem Xtameem 2025-10-30 00:30:24 0 44
Shopping
so easy to throw Dior Handbags Outlet on and look put
a senior training and development specialist in insurance at Solutions, is drawn to the dress...
By Novalee Moran 2025-07-11 13:09:25 0 2K