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.

Поиск
Категории
Больше
Другое
Market Overview of Middle East and Africa Coated Paper Market: Growth Forecast, Key Companies, and Industry Trends
"Executive Summary: Middle East and Africa Coated Paper Market Size and Share by...
От Danny King 2025-10-16 12:34:57 0 1Кб
Игры
New Maritime Mystery Series - Josh Hartnett Leads
New Maritime Mystery Series Josh Hartnett Leads New Mystery Series Set in Coastal Newfoundland...
От Xtameem Xtameem 2026-01-08 12:58:25 0 191
Игры
Ellen DeGeneres Tour 2024 – Final Netflix Special Preview
Ellen DeGeneres kicks off a multi-city stand-up tour in San Diego this June 19th. Accompanying...
От Xtameem Xtameem 2025-11-06 00:19:55 0 924
Игры
Firefox Extensions Security: .NET Framework Risks
The confusion surrounding browser extensions and security vulnerabilities has created significant...
От Xtameem Xtameem 2025-12-31 01:15:31 0 229
Shopping
COACH Jade 26 系列單肩斜挎包|輕奢質感與百搭功能一次擁有
COACH 一直以精緻皮革工藝與實用設計受到時尚愛好者青睞,而 Jade 26...
От Kai Song 2026-01-13 08:45:20 0 185
Aldyra https://aldyra.com