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.

Поиск
Категории
Больше
Игры
Netflix's European Expansion: New Hub & Jobs
Netflix has recently expanded its presence in Europe by opening a new customer service center in...
От Xtameem Xtameem 2026-01-26 07:24:11 0 449
Игры
PSN Outage: Data Breach Concerns Rise
The ongoing outage of the PlayStation Network has now entered its fifth day, raising alarms about...
От Xtameem Xtameem 2026-02-09 01:24:13 0 278
Игры
Hero Generation System – Whiteout Survival Guide
Hero Generation System When embarking on a new adventure in Whiteout Survival, your hero roster...
От Xtameem Xtameem 2025-11-14 00:14:27 0 1Кб
Игры
VPN for Spanish TV – Top Picks for Antena 3 Access
Top VPN Options for Spanish TV Accessing Antena 3 and Atresmedia content from outside Spain...
От Xtameem Xtameem 2025-10-31 05:08:39 0 1Кб
Другое
China Lip Stain Market Growth Factors Influence Product Adoption Patterns
The China lip stain market is increasingly competitive, driven by premiumization, innovative...
От Tejas Kudale 2026-01-15 12:49:43 0 582
Aldyra https://aldyra.com