Ubuntu: Upgrade FTP user to SFTP

0
28K

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
Games
Système de classement Valorant - Guide complet
Système de classement Valorant Valorant ne se limite pas à un jeu de tir tactique...
By Xtameem Xtameem 2025-12-30 00:06:52 0 307
Networking
Lawn Care and Turf Equipment Improving Grass Management, Fertility, and Overall Outdoor Space Maintenance
As Per Market Research Future, Lawn Care and Turf Equipment is a significant segment of the lawn...
By Mayuri Kathade 2025-12-16 10:11:26 0 557
Games
Whiteout Survival Hero Gear Calculator – Resources & SVS
Effortlessly determine the resources needed for hero gear enhancements in Whiteout Survival,...
By Xtameem Xtameem 2025-10-31 02:49:02 0 1K
Shopping
Golden Goose Sneakers On Sale defunct mineshaft a members only leather
Regardless of your ultimate goals it important to take a holistic app to selecting a fashion...
By Finley York 2025-08-10 09:04:44 0 2K
Networking
Which Document Provides an Overview of a Laboratory’s Quality Management System under ISO 17025?
In the world of laboratory testing and calibration, maintaining consistent quality, reliability,...
By Angel 258 2025-10-29 09:34:03 0 1K
Aldyra https://aldyra.com