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.

Поиск
Категории
Больше
Другое
Exploring Growth Opportunities in the Specialty Adhesive Market
The Specialty Adhesive Market has become a critical component in multiple industrial sectors,...
От Ram Vasekar 2025-10-16 04:15:19 0 1Кб
Другое
Rail Composites Market Trends Fueling Growth in High-Speed, Metro, and Freight Rail Applications
The rail industry is increasingly embracing composite materials to improve efficiency, safety,...
От Ram Vasekar 2026-02-03 06:01:45 0 347
Игры
PlayerUnknown's Battlegrounds — лидер продаж Steam
Прошедшая двенадцатая неделя после релиза популярного шутера PlayerUnknown's Battlegrounds...
От Xtameem Xtameem 2026-01-16 11:16:49 0 384
Игры
The Gentlemen Season 2 – Netflix Series Updates
Production resumes on Guy Ritchie's criminal saga with cameras rolling for The Gentlemen Season...
От Xtameem Xtameem 2025-10-30 01:41:26 0 1Кб
Другое
Generative Ai In Insurance Market Growth 2026 | Digital Banking Trends: Revolutionizing Risk and Efficiency
The Generative Ai In Insurance Market Growth 2026 | Digital Banking Trends is poised to...
От Kajal Jadhav 2026-02-03 09:37:36 0 312
Aldyra https://aldyra.com