Ubuntu: Upgrade FTP user to SFTP

0
27Кб

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.

Поиск
Категории
Больше
Игры
P2P Trading in Nigeria: Earn Money with Paxful
Imagine a different perspective on Nigeria's economic landscape. While many are facing financial...
От Xtameem Xtameem 2025-10-29 03:36:18 0 727
Другое
Colorado Rockies information: 5 reasons to be excited about the Rockies this period - Purple Row
There are lots of factors to be less than thrilled about the Rockies 2023 period. The greatest...
От Chad Fortners 2024-07-31 03:15:33 0 6Кб
Shopping
Staten Island squad uses dramatic walk-off to move within one win of Little League World Serie
With the bases loaded and two outs in the bottom of the seventh, and the game tied at five,...
От Ebony Ortiz 2025-11-18 02:08:09 0 345
Игры
Top Streaming Hits: Trending TV Shows This Week
Top Streaming Hits Streaming audiences this week pushed a mix of tense thrillers, haunting...
От Xtameem Xtameem 2025-10-31 03:14:15 0 670
Другое
Analyzing Market Dynamics and Growth Outlook of the Carry Deck Crane Market
As industries continue to evolve toward efficiency, safety, and compact design, the Carry Deck...
От Ram Vasekar 2025-11-05 10:50:57 0 626
Aldyra https://aldyra.com