Ubuntu: Upgrade FTP user to SFTP

0
26Кб

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.

Поиск
Категории
Больше
Shopping
Goyard international buyers were drawn by the dual appeal of
So lightweight and ever so chic! I have the clear but love the cola and verde also I may just...
От Emerie Houston 2024-10-09 08:02:48 0 5Кб
Shopping
Golden Goose On Sale about making loved fashion really accessible
You know and know and everyone knows that fashion is not just about the things we wear but about...
От Margot Poole 2025-05-20 02:08:06 0 2Кб
Shopping
Croatia Euro 2012 Croatia vs. Spain its crunch time for Croatia
Monday night will see the final games of Group C played out in Gdansk and Poznan, and as it...
От Merl Treutel 2025-05-15 02:03:40 0 2Кб
Drinks
BestRealDoll to quality “pry” love doll market new growth space
In the “sex concept” gradually be corrected today, the development of sex dolls...
От Jamied Walsh 2025-07-09 06:33:44 0 1Кб
Health
Whatsapp +97433711266 cbd products for sell in qatar doha, pearl qatar
Whatsapp +97433711266 cbd products for sell in qatar doha, pearl qatar CBD oil Qatar, CBD oil...
От Mohammed Saad 2025-08-15 06:18:17 0 578
Aldyra https://aldyra.com