Ubuntu: Upgrade FTP user to SFTP

0
26K

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
a colder season calls for hydrating items
Keeping that in mind, I almost entirely depended on my Adidas Sambas and Salomon sneakers to get...
By Emily Crane 2024-07-18 10:57:37 0 8K
Shopping
Goyard label for giraffe at Paris fashion week in displaying
As a trans woman I remember first learning to from the waist up; all it took was learning my...
By Emilia Hurley 2024-09-27 09:45:44 0 5K
Alte
Motorized Decoiler Machine Market Forecast Predicts Strong Demand Across Industrial Sectors
The motorized decoiler machine market forecast anticipates steady growth driven by...
By Mayuri Kathade 2025-09-11 10:43:10 0 137
Networking
Does 4G car GPS tracker cause radiation damage to the human body? How much radiation is there?
Nowadays, electronic products occupy most of people's daily lives, and it can be said that...
By Aldyracom Aldyracom 2024-09-09 06:54:40 0 5K
Shopping
for some model girls Hermes like the stable serves as a sanctuary
they were 3D printed then given a chrome treatment. It was such an empowering show and had such a...
By Remi Wells 2024-10-30 09:26:05 0 4K
Aldyra https://aldyra.com