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 Cyber Insurance Market Report 2034 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
India Cyber Insurance Market Overview 2026-2034 According to the latest report by The Report...
By Lily Desouza 2025-11-04 17:47:17 0 732
Other
Vehicle Emission Compliance Systems Shaping Sustainable Automotive Technologies
  Vehicle emission compliance systems are increasingly critical as governments worldwide...
By Rushi Dalve 2025-12-01 11:23:58 0 497
Other
PCIe 4.0 Retimer Adoption Trends Across Enterprise and Cloud Segments
The global PCI Express (PCIe) 4.0 Retimer market, which is the heart of digital...
By Priya Singh 2025-11-08 12:58:19 0 677
Games
Last War Survival Base Strategy: Defense & Management Tips
Base Strategy and Management Building a stronghold in Last War Survival demands a strategic...
By Xtameem Xtameem 2025-10-31 02:52:03 0 809
Games
Vertical Microdrama 'Swipe!'—Shogun Films' Bold Entry
Shogun Films and Trinity Content join forces to create vertical microdrama 'Swipe!' marking...
By Xtameem Xtameem 2025-11-28 01:18:00 0 375
Aldyra https://aldyra.com