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
Shopping
refuting that Dior Handbags Sale as they create new avenues for
while has been known for cheeky after party and ment making bridal her latest exclusive...
By Priscilla Gamble 2025-01-09 04:32:52 0 3K
Other
North America Alcoholic Drinks Market Outlook 2032: Leading Companies & Share Insights
North America Alcoholic Drinks Market Size & Insights According to MarkNtel Advisors study...
By Rozy Desoza 2025-10-16 17:14:56 0 598
Games
Dune: Awakening Free Trial – Play Until Nov 27
If you've been hesitant to dive into Funcom's Dune: Awakening, now's the perfect time to try it...
By Xtameem Xtameem 2025-11-22 00:01:33 0 14
Networking
Future Prospects of Bulk Chemical in Global Industries
The future of bulk chemicals is shaped by digitalization, sustainability, and emerging...
By Deady Cnm 2025-10-07 07:45:54 0 756
Shopping
Redskins blast Bills to stay atop NFC East
The (7-7) remain in the driver's seat of the NFC East after knocking off the on Sunday in a game...
By Merl Treutel 2025-05-15 02:27:05 0 2K
Aldyra https://aldyra.com