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.

Search
Categories
Read More
Games
International Box Office: Panic Room Surges
International box office saw a welcome surge last weekend, fueled by the robust premiere of...
By Xtameem Xtameem 2026-01-07 06:57:19 0 470
Games
Genshin Impact 5.5 : Nouvelles quêtes [Guide]
Nouvelles Quêtes 5.5 Avec la mise à jour 5.5 de Genshin Impact, l’intrigue...
By Xtameem Xtameem 2025-11-08 00:37:22 0 1K
Shopping
gives a bride the option Zegna Sneakers On Sale to go for something
The Met, its the time to put on a show, no posits, expounding on the evenings dress code. The...
By Braelyn Arellano 2024-05-30 09:48:13 0 9K
Games
FC 26 – Yan Diomandé Future Stars : Profil et Atouts
Nouveau Talent FC 26 Une nouvelle recrue vient d’être intégrée dans la...
By Xtameem Xtameem 2026-02-13 14:19:22 0 164
Other
Barium Sulphate Precipitated Market: Growth Forecast and Emerging Applications in Industrial Sectors
The barium sulphate precipitated market continues to expand as industries increasingly adopt...
By Harshal J72 2026-01-13 22:08:26 0 710
Aldyra https://aldyra.com