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.

Zoeken
Categorieën
Read More
Other
Keratin Market: Key Growth Factors, Revenue Analysis
Keratin is a naturally occurring fibrous protein that serves as the structural foundation...
By Ruhia Khan 2025-10-29 06:46:56 0 1K
Spellen
FC Pro Live FC 26 : Suivi et évolution des joueurs
Les joueurs FC Pro Live dans FC 26 disposent d’un système d’évolution...
By Xtameem Xtameem 2025-11-26 17:59:48 0 840
Spellen
Netflix & Coens' Western Saga - 2018 Premiere
Netflix gears up to ride into the sunset with a fresh, six-part Western saga. Crafted by the...
By Xtameem Xtameem 2026-02-08 07:29:23 0 256
Spellen
Pottermore Sorting Ceremony: New Update Unveiled
The beloved Pottermore Sorting Ceremony is undergoing a exciting transformation, offering fans a...
By Xtameem Xtameem 2025-11-15 02:19:48 0 962
Networking
Automated Horizons: The Strategic Evolution of the Robotic Drilling Market
The global energy landscape is currently witnessing a profound technological shift, where the...
By Rupali Wankhede 2026-02-16 11:40:17 0 192
Aldyra https://aldyra.com