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.

Поиск
Категории
Больше
Игры
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 1Кб
Другое
Future-Ready Poultry Farming Through Intelligent Machinery
The global poultry sector is experiencing a major transformation as farming operations...
От Priya Singh 2026-01-03 14:48:19 0 693
Игры
Netflix Acquires Norwegian Tragedy Film – Director Revealed
Netflix Secures Acclaimed Director for Norwegian Tragedy Film In a significant move for the...
От Xtameem Xtameem 2026-02-10 14:25:43 0 496
Игры
People We Meet on Vacation: Subtle Character Reactions
Character Reactions A fleeting moment of charm in People We Meet on Vacation often passes...
От Xtameem Xtameem 2026-01-11 01:08:55 0 609
Игры
Windscribe CEO Slams UK VPN Ban Proposal – Key Concerns
The CEO of Windscribe has criticized a recent proposal in the UK House of Lords, calling it "the...
От Xtameem Xtameem 2025-12-16 02:45:16 0 720
Aldyra https://aldyra.com