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
Games
Benoit Blanc Trilogy: Ranking the Knives Out Films
Benoit Blanc Series Overview Upon the recent release of "Wake Up Dead Man: A Knives Out Mystery"...
By Xtameem Xtameem 2025-12-18 02:49:05 0 1
Games
Call of Duty Mobile Review – Console Action on Phones
Call of Duty Mobile Review Currently, fans of the Call of Duty series are eagerly anticipating...
By Xtameem Xtameem 2025-10-30 05:26:19 0 854
Games
Gaming Industry UK: Calls for Tax Relief & Support
Gaming Industry Seeks Financial Support in the UK British video game developers are experiencing...
By Xtameem Xtameem 2025-11-29 02:05:29 0 402
Other
A Holistic Overview of the Mobile Wallet Market Evolution
  The Mobile Wallet Market overview presents a comprehensive perspective of how technology,...
By Sssd Ddssa 2025-10-14 03:59:42 0 1K
Shopping
stream of visitors this week to view the Goyard Bags brand's collaboration
Outside of this afternoon, celebrities congregated Meg Ryan! while inside the, the beauty looks...
By Mariah Rubio 2024-09-03 05:31:40 0 7K