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
Asia-Pacific Ginger Market Outlook 2032: Leading Companies & Share Insights
Asia-Pacific Ginger Market Size & Insights According to MarkNtel Advisors study...
By Rozy Desoza 2025-10-16 18:03:55 0 599
Other
Identifying the Defining US Private Cloud Services Market Trends
The evolution of enterprise IT is being heavily influenced by several key Private Cloud...
By Harsh Roy 2025-09-24 11:31:28 0 922
Other
Capping-machine Supports Circular Economy in Bottle Cap Manufacturing
The increasing focus on circular economy practices has transformed modern packaging...
By sean zhang 2025-11-06 10:57:46 0 355
Games
Pokémon TCG Pocket Mega Rising Secret Missions Guide
In the Pokémon TCG Pocket set released in October 2025, players are challenged with the...
By Xtameem Xtameem 2025-10-31 01:43:52 0 316
Other
Tracking Market Share: Key Players and Competitive Dynamics in the Virtual Reality Industry
  As the Virtual Reality Industry scales new heights, understanding who commands the Virtual...
By Sssd Ddssa 2025-11-14 08:28:23 0 119
Aldyra https://aldyra.com