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
Other
Technological Advancements in Ammonium Nitrate Manufacturing
According to Market Research Future, the Ammonium Nitrate market is witnessing steady...
By Deady Cnm 2025-12-15 07:46:33 0 398
Home
Whatsapp +1(442)2893697 Order Marijuana Online
Whatsapp +1(442)2893697 Order Marijuana Online CBD oil Qatar, CBD oil Qatar online ,is cbd oil...
By Mohammed Saad 2025-08-15 06:26:06 0 2K
Shopping
Eagles vs. Rams Week 2 odds picks Point spread total player props and bets to consider
The travel east to take on the in Week 2, as the former looks to prove they are a legitimate...
By Merl Treutel 2025-05-15 02:44:12 0 2K
Games
Hawkins Prequel on Stage - Broadway Thriller
Hawkins Prequel on Stage Step into the chilling prequel of Hawkins' mysteries, unfolding live on...
By Xtameem Xtameem 2026-01-09 02:59:35 0 109
Games
Is It Cake? Holiday – Festive Baking Showdown Guide
Holiday Cake Showdown Exciting news for dessert enthusiasts and holiday fans alike: a special...
By Xtameem Xtameem 2025-11-20 00:37:57 0 731
Aldyra https://aldyra.com