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
Market Drivers Behind the Rapid Adoption of Disposable Bioprocessing Equipment
Among the most dependable areas of healthcare investment stands the global Single Use...
By Priya Singh 2025-11-18 16:13:23 0 841
Other
Automotive Industry Driving Digital Twin Market Growth
The digital twin market has found extensive application within the automotive industry,...
By Shraddha Nevase 2025-12-12 08:59:57 0 908
Other
Key Trends Shaping the Future of TV Advertising
The global Television Advertising market leads the nation's so-called...
By Priya Singh 2025-10-17 06:39:04 0 1K
Crafts
Is Injection Molding Machine From qhpreformmould A Practical Long Term Choice?
Injection Molding Machine discussions often begin with curiosity about how everyday products...
By qhpreform mould 2025-12-30 06:27:57 0 317
Games
Free Fire OB40 Update: Sonia Character & Features
The highly anticipated Free Fire OB40 update is set to launch soon, with developers officially...
By Xtameem Xtameem 2025-12-09 03:45:30 0 372
Aldyra https://aldyra.com