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.

Поиск
Категории
Больше
Игры
Passive Defense Decks – No Attacks for You Strategy
In the current meta, opponents often overlook the power of passive defense, but this approach can...
От Xtameem Xtameem 2025-12-05 06:26:51 0 713
Другое
Bio-Based Thermoplastic Elastomer Market Insights and Growth Trends 2025 –2032
"Executive Summary Bio-Based Thermoplastic Elastomer Market Research: Share and Size...
От Data Bridge 2025-11-04 04:30:25 0 1Кб
Игры
Harry Potter Match-3 Game: Magical Puzzles Await
Step into a magical match-3 adventure where puzzles and spells collide A new chapter in the...
От Xtameem Xtameem 2026-01-26 00:58:18 0 437
Игры
Valentine's Day - Warner Bros. Studio Tour London
The romance of Valentine's Day returns to the Great Hall, Offering a magical evening for witches...
От Xtameem Xtameem 2025-12-18 02:27:10 0 650
Игры
WizardingWorld.com – Your Portal to Harry Potter Magic
Welcome to the new digital home of the wizarding universe! Step inside, pour yourself a warm cup...
От Xtameem Xtameem 2025-11-19 03:39:28 0 999
Aldyra https://aldyra.com