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.

Поиск
Категории
Больше
Игры
Once Human: SOCR Last Valor - Top Assault Rifle
The SOCR Last Valor stands out as one of the top assault rifles in Once Human for everyday...
От Xtameem Xtameem 2025-12-26 10:15:31 0 36
Shopping
Custom Suits Los Angeles
Forget everything you think you know about buying a suit. The journey of creating a bespoke...
От Curtis Ward 2025-12-12 06:14:07 0 419
Игры
FC 26 World Tour Items – Unlock, Upgrades & Rewards
Introduction to FC 26 World Tour Items With every new season in FC 26, players can look forward...
От Xtameem Xtameem 2025-11-11 04:31:36 0 726
Игры
Unlock US Netflix in Australia – VPN Guide & Tips
Unlocking US Netflix Abroad While Netflix is accessible across many regions worldwide, the...
От Xtameem Xtameem 2025-12-17 04:43:42 0 196
Networking
South Korea Sheet Metal in Aerospace and Heavy Engineering
The South Korea Sheet Metal is a critical sector within the country’s highly...
От Deady Cnm 2025-10-09 09:24:49 0 1Кб
Aldyra https://aldyra.com