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.

Поиск
Категории
Больше
Игры
NCSoft Insider Trading Probe: Legal Action
Legal investigations have been initiated against Bae Jae-hyu, a former vice president of NCSoft...
От Xtameem Xtameem 2026-02-05 14:26:44 0 377
Другое
Bureau of Indian Standards Certification: BIS Registration Online with JR Compliance
Doing business in India isn’t just about making a product or importing goods and getting...
От Tarun Jrcompliance 2026-02-06 06:38:14 0 539
Игры
Alliance Strategy Guide: Dominate Whiteout Survival
Alliance Strategy Overview In the realm of top-tier 4X mobile games, alliances stand out as a...
От Xtameem Xtameem 2026-02-20 07:39:35 0 234
Другое
Frameless Rearview Mirror Retrofit Market Set for Rapid Growth Driven by Automotive Innovation
The Frameless Rearview Mirror Retrofit Market is gaining significant traction globally,...
От Caitan Cruz 2026-01-21 12:40:58 0 685
Другое
Anti-Corrosion Coatings Market Overview, Industry Top Manufactures, Size, Growth rate by 2031
The Anti-Corrosion Coatings Market research report has been crafted with the most advanced and...
От Janvi Mane 2026-01-07 12:21:52 0 598
Aldyra https://aldyra.com