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.

Поиск
Категории
Больше
Игры
Oscar Nominations Boost Films – International Box Office
Oscar Nominations Boost Films at International Box Office 'Monsters, Inc.' and 'Ocean's Eleven'...
От Xtameem Xtameem 2025-11-20 03:49:42 0 570
Другое
Cloud IDS IPS Market Forecasts Highlight Strong Cybersecurity Advancements
  The evolving digital landscape has intensified the demand for sophisticated cloud security...
От Sssd Ddssa 2025-11-12 03:59:54 0 873
Shopping
The Newest Golden Goose Shoes Outlet
The Newest Golden Goose Shoes Outlet https://www.goldensgoosesonsale.com
От Adley Mclean 2025-06-13 04:54:59 0 3Кб
Игры
VPN for Students: Block Distractions—Boost Focus
As the academic year commences, parents face familiar challenges: helping children navigate new...
От Xtameem Xtameem 2025-12-08 01:17:52 0 260
Другое
Global Trade Dynamics of the Neopentyl Glycol Market
Innovation has become a cornerstone of the Neopentyl Glycol market trend as industries...
От Ram Vasekar 2025-08-28 10:11:12 0 1Кб
Aldyra https://aldyra.com