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.

Căutare
Categorii
Citeste mai mult
Shopping
How to Apply Aluminum Foil Tape Correctly for Long-Lasting Sealing?
Aluminum foil tape is a versatile tool for sealing, insulation, and repair—used widely in...
By Aluminium Lanren 2025-10-27 08:53:18 0 1K
Shopping
David Moyes urges West Ham players to avoid complacency after Aston Villa win
West Ham United bo s David Moyes urged his players to avoid complacency following an overwhelming...
By Merl Treutel 2025-05-15 02:45:41 0 2K
Shopping
that was first published in and includes a Goyard Bags specific brand of nostalgic
The good news Lots of options means you can be highly selective in choosing a program that's...
By Mariah Rubio 2024-08-30 14:14:18 0 6K
Jocuri
Last War: Survival – How to Get Courage Medals Fast
Participating in the Last War: Survival event offers players a strategic opportunity to earn...
By Xtameem Xtameem 2025-11-20 01:00:33 0 648
Jocuri
VPN Ban Denmark: Streaming Law Reversal Explained
The controversial plan to outlaw VPNs for accessing geo-blocked streaming services has been...
By Xtameem Xtameem 2025-12-18 04:17:07 0 164
Aldyra https://aldyra.com