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.

Поиск
Категории
Больше
Игры
Digital Advertising Data Sharing: Trends & Regulations
The landscape of digital advertising continues to evolve, with data sharing practices among...
От Xtameem Xtameem 2025-12-09 05:51:51 0 108
Shopping
戒菸新選擇:漢宮草本替煙棒有效嗎?
隨著健康意識提升,越來越多吸菸者開始尋找無尼古丁、無焦油的替代產品,其中「漢宮草本替煙棒」便成為市場關注的焦點。許多人好奇:這款主打天然草本配方的替煙產品,真的能有效幫助戒菸嗎?本文將從成分、使...
От Kai Song 2025-11-19 02:19:57 0 561
Другое
with new textures Maison Margiela and materials
in attendance at the festival and took to Instagram to celebrate the moment. In one post, he...
От Islar Blaire 2025-10-15 08:45:38 0 1Кб
Игры
Pokémon TCG Pocket: Parallel Foil Cards Outbreak Guide
A special event has recently taken over Pokémon TCG Pocket, bringing a thrilling surge of...
От Xtameem Xtameem 2025-11-20 00:37:57 0 467
Crafts
YONOELFIRSTAID Trauma First Aid Kit Supporting Critical Care Efficiency
A well-prepared Trauma First Aid Kit is essential for immediate response in emergency situations,...
От yonoel yonoel 2025-11-14 05:55:19 0 732
Aldyra https://aldyra.com