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.

Поиск
Категории
Больше
Игры
FUTBIN Legends Charity Game - Football Stars & Insights
Introduction: FUTBIN at the Legends Charity Game FUTBIN recently participated in the Legends...
От Xtameem Xtameem 2026-02-12 08:51:36 0 424
Другое
JR Compliance: AERB License & Radiation Equipment Approval Guide
Following the rules is a fundamental aspect of running a hospital, diagnostic center, dental...
От Tarun Jrcompliance 2026-03-02 10:33:08 0 333
Crafts
Where Can You Source Wire for Robotic Aluminum Welding
Automation investments in manufacturing facilities demand consumables supporting sustained...
От Jason Robby 2026-03-05 10:49:21 0 559
Игры
Zodiac and Marvel Heroes: Find Your In-Game Match
Zodiac and Marvel Heroes Connection Ever wondered which Marvel Rivals champion reflects your...
От Xtameem Xtameem 2026-03-12 03:02:02 0 232
Другое
Market Opportunities in the Benelux Intralogistics Industry
The automobile sector is still one of the most crucial sectors shaping industrial as well as...
От Priya Singh 2025-11-18 02:49:13 0 1Кб
Aldyra https://aldyra.com