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.

Поиск
Категории
Больше
Игры
Wanderlust: Toni Collette's New Drama Series
Toni Collette brings her acclaimed talents to the captivating new series, Wanderlust. This...
От Xtameem Xtameem 2026-02-13 02:40:53 0 264
Другое
Deception Technology Market Size, Growth 2026: Trends and Opportunities
The Deception Technology Market Size, Growth 2026 is projected to experience robust...
От Kajal Jadhav 2026-02-13 11:58:14 0 280
Игры
Hollywood's Family Focus: The New Fiscal Imperative
Hollywood's heart is set on households, as family-friendly fare becomes a fiscal imperative....
От Xtameem Xtameem 2026-01-20 01:24:19 0 484
Игры
Valorant Replay System: Features & Benefits Overview
Valorant Replay System Overview Since its debut in Valorant, the replay feature has...
От Xtameem Xtameem 2025-11-06 01:10:47 0 1Кб
Игры
Castorice Honkai Star Rail: Skills & Gameplay Guide
Castorice's Introduction and Gameplay Castorice stands out as the second premium remembrance...
От Xtameem Xtameem 2025-12-11 02:44:21 0 649
Aldyra https://aldyra.com