Ubuntu: Upgrade FTP user to SFTP

0
28K

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
Alte
Middle East and Africa Clinical Trial Supplies Market Overview: Industry Performance, Growth Rate (CAGR), and Future Forecast
"What’s Fueling Executive Summary Middle East and Africa Clinical Trial Supplies...
By Danny King 2025-10-16 12:22:24 0 1K
Jocuri
Philadelphia Phillies 2024 Success: Fan Impact Explained
In a remarkable display of fan influence, the Philadelphia Phillies' 2024 success story –...
By Xtameem Xtameem 2025-11-18 02:51:38 0 745
Jocuri
Stranger Things Finale: A Theatrical Experience
The Collective Experience: Witnessing the 'Stranger Things' Series Finale in a Packed Theater...
By Xtameem Xtameem 2026-01-12 02:59:46 0 174
Crafts
Which Comb Design Fits Your Dog Breed And Coat Texture Today
Designing effective grooming tools depends on matching comb features to coat structure and body...
By Chloe Vincy 2025-10-27 08:56:24 0 1K
Alte
8 Meilleurs Idées De Recueillir Des Fonds Pour Club De Sport Incroyables
Idées de recueillir des fonds pour club de sport – Les clubs sportifs sont...
By Gulshan Whydonate 2024-11-07 15:07:52 0 7K
Aldyra https://aldyra.com