Ubuntu: Upgrade FTP user to SFTP

0
28Кб

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.

Поиск
Категории
Больше
Networking
Innovation and Strength Inside the Expanding Cold Formed Steel
The Cold Formed Steel (CFS) is a high-strength, lightweight construction material...
От Deady Cnm 2025-10-31 06:32:59 0 1Кб
Игры
Dune: Awakening Zone Changes – Funcom Apologizes
Recently, players of Dune: Awakening experienced unexpected setbacks due to in-game zone changes....
От Xtameem Xtameem 2025-12-13 00:20:08 0 458
Игры
Maxwell Weinberg Award: Top Film & TV Campaigns
Hollywood publicists have selected a diverse array of films and television shows for this...
От Xtameem Xtameem 2025-11-21 04:03:41 0 801
Игры
Fast.com Internet Speed Test – Quick & Free Insights
Discover your internet's true speed with Fast.com, a user-friendly site accessible worldwide....
От Xtameem Xtameem 2026-01-18 03:05:41 0 267
Shopping
Aston Villa Should Be Challenging Not Scrapping
I love Aston Villa fans, i really do. They are light hearted in there own way. If they lose they...
От Merl Treutel 2025-05-15 02:26:36 0 2Кб
Aldyra https://aldyra.com