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.

Buscar
Categorías
Read More
Juegos
2016 MMORPG Highlights – Top Games Shaping the Year
2016 MMORPG Highlights A few weeks back, Eliot Lefebvre from Massively OP pondered which MMORPG...
By Xtameem Xtameem 2025-10-30 03:29:50 0 918
Other
Luxury Residential Real Estate Trends and Market Shifts
The residential housing segment remains one of the most dynamic areas of the global economy as...
By Ram Vasekar 2025-12-04 12:48:19 0 406
Shopping
to have there Hermes was really important to me
Rather than leaving you to sift through your closet with a pile of clothes in your wake, we...
By Simone Andersen 2025-11-14 08:34:18 0 683
Juegos
Pokémon TCG Pocket – Mega Evolution Expansion Preview
This month marks the one-year milestone for Pokémon TCG Pocket, and to mark the occasion,...
By Xtameem Xtameem 2025-12-10 04:49:05 0 207
Home
Stevia Market Overview, Industry Share, and Competitive Landscape 2025–2032
The food and drink sector responds in real time to changing consumer requirements and innovations...
By Riya Patil 2025-10-24 16:25:58 0 982