Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Cerca
Categorie
Leggi tutto
Crafts
Will Baozhiwei Vehicle Industry Dark Tail Lights Inspire Fresh Design Ideas
Many drivers who want a striking visual upgrade begin their search with Dark Tail Lights,...
By Carlamp factory 2025-11-20 03:46:43 0 738
Altre informazioni
UAE ICT Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
UAE ICT Market Overview 2026-2032 According to the latest report by The Report Cube,...
By Lily Desouza 2025-11-07 16:39:40 0 1K
Altre informazioni
Innovative PVC Inflatable Fabric for Emergency and Marine Use
In modern inflatable products, achieving reliable performance requires materials that combine...
By sean zhang 2025-12-09 06:11:11 0 353
Shopping
Dior Handbags easily be dressed up with a kitten heel or down
To say that women's basketball is in the midst of a cultural boom would be a vast understatement....
By Rayna Walters 2024-09-06 14:39:34 0 7K
Health
How Quickly Does Albendazole Work?
Albendazole is a well-known antiparasitic medication widely used to treat various worm...
By James971 James 2025-11-13 06:50:54 0 737