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.

Поиск
Категории
Больше
Игры
Marvel Rivals xQc Invitational: $250K Tournament
Felix ‘xQc’ Lengyel, a major figure in the Twitch streaming community, has revealed...
От Xtameem Xtameem 2025-12-11 03:59:57 0 226
Другое
Global Circuit Breaker Market Size & Forecast
Circuit Breaker Market – Explores global market expansion driven by industrial automation...
От Rupali Wankhede 2025-10-13 12:09:06 0 1Кб
Другое
Live Cell Imaging Market : Size, Share, and Future Growth 2025 –2032
"Executive Summary Live Cell Imaging Market: Growth Trends and Share Breakdown CAGR Value...
От Data Bridge 2025-11-03 05:49:13 0 819
Networking
US Machine Tools Market Growth Driven by Industrial Automation, Efficiency, and Production Expansion
As Per Market Research Future, the US Machine Tools Market Growth is driven by the increasing...
От Mayuri Kathade 2025-12-15 10:24:26 0 267
Shopping
How Does Gusumachinery Chocolate Coating Machine Control Coating Thickness Stability
Chocolate Coating Machine performance plays a central role in maintaining coating thickness...
От jsszgusufood jsszgusufood 2025-12-23 01:40:18 0 4
Aldyra https://aldyra.com