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.

Поиск
Категории
Больше
Shopping
新手必看加熱菸說明
對初次接觸7 11加熱菸的人來說,最容易混淆的地方在於主機與菸彈的相容性。常見的 IQOS 與 Ploom 系列,彼此之間無法共用菸彈,使用前需先確認7 11加熱菸主機型號,避免操作錯誤。 7...
От Kai Song 2026-01-21 02:04:33 0 590
Другое
Strategic Partnerships and M&A in the Potato Flakes Industry
The food and drink sector responds in real time to changing consumer requirements and innovations...
От Priya Singh 2025-09-16 15:41:35 0 2Кб
Игры
O2 Network Fault: iPhone Users Face UK Outage
The UK's mobile landscape faces turbulence as O2 grapples with a persistent network fault,...
От Xtameem Xtameem 2026-01-03 00:09:54 0 468
Shopping
Latest Golden Goose Starter Sneakers
Latest Golden Goose Starter Sneakers Goldengooseshoessales.com
От Simone Andersen 2025-11-16 10:32:19 0 1Кб
Игры
NFC Technology: Growth Trends & Security Challenges
The Rise of NFC Technology: Balancing Growth and Security As wireless communication technologies...
От Xtameem Xtameem 2026-01-21 04:50:01 0 464
Aldyra https://aldyra.com