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
Shopping
delectable options including the best Bottega Veneta Backpack Bags gifts under 100
take your pick from a line slitted versions or straight cut in every wash imaginable from light...
By Priscilla Gamble 2025-01-06 09:10:42 0 3K
Shopping
Narciso Rodriguez for her 女性淡香水-優雅氣息的現代女性必備香氛
在香水界中,Narciso Rodriguez 是備受推崇的品牌,而其經典之作「Narciso Rodriguez for her...
By Kai Song 2025-09-30 07:11:01 0 920
Altre informazioni
PCIe 4.0 Retimer Adoption Trends Across Enterprise and Cloud Segments
The global PCI Express (PCIe) 4.0 Retimer market, which is the heart of digital...
By Priya Singh 2025-11-08 12:58:19 0 371
Giochi
TOTW 7 FIFA 26 : Messi, Bellingham, Putellas briller
Lionel Messi, auteur d’un doublé lors du dernier match, semble être un...
By Xtameem Xtameem 2025-10-30 00:06:51 0 450
Giochi
Spain's Cinema Reform: FAPAE Pushes for European Quotas
Spain's cinema sector faces intensified pressure for reform from influential lobby group FAPAE....
By Xtameem Xtameem 2025-11-02 00:34:54 0 494
Aldyra https://aldyra.com