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
fashion on Island serves one very specific purpose
The original costumes were by veteran costume designer, Showgirls, which revelled in luxurious...
By Bellamy Guerra 2025-10-22 07:51:37 0 1K
Alte
Sustainability and Recycling Challenges in the Shape Memory Alloy Market
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
By Priya Singh 2025-11-03 02:45:57 0 771
Jocuri
BAFTA Awards 2024: Winners, Surprises & Highlights
I'll rewrite the article about the BAFTA Awards with a different structure and presentation. The...
By Xtameem Xtameem 2025-11-25 00:51:57 0 502
Networking
characteristics of automatic cnc pipe end forming machines What is the correct step to remove the hydraulic cylinder?
characteristics of automatic cnc pipe end forming machines is the current power...
By Aldyracom Aldyracom 2024-11-11 08:04:49 0 4K
Health
The Role of AI and Automation in the Channel In A Box Market
Broadcasting technology is experiencing rapid modernization as media companies strive to meet...
By Divya Patil 2025-11-29 16:27:23 0 444
Aldyra https://aldyra.com