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
Jodhpur Bandhgala: How to Choose and Buy This Royal Classic
The Jodhpur bandhgala is more than just an outfit – it’s a symbol of royalty,...
By Deepees Jodhpur 2025-09-06 08:41:21 0 848
Other
HVAC Pump Market Size, Share & Forecast Analysis to 2030
HVAC Pump Market Size & Insights According to MarkNtel Advisors study The future of HVAC...
By Rozy Desoza 2025-10-30 18:20:02 0 23
Gardening
Participant Preview: Is Mason Plumlee the immediately person for the activity?
Welcome toward the 2024-25 Phoenix Suns Year Preview collection,the place we embark upon a...
By Dunn Ryan 2025-10-18 03:15:48 0 383
Games
Valorant : Veto – Nouvel agent et ses stratégies
Ces dernières années, la dynamique des stratégies d’attaque sur les...
By Xtameem Xtameem 2025-10-31 02:22:24 0 6
Home
Whatsapp +97433711266 medicinal cbd oil in saudi, UAE, Doha
Whatsapp +97433711266 medicinal cbd oil in saudi, UAE, Doha CBD oil Qatar, CBD oil Qatar online...
By Mohammed Saad 2025-08-15 06:17:30 0 1K