Ubuntu: Upgrade FTP user to SFTP

0
25Кб

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.

Поиск
Категории
Больше
Главная
Golden Goose many collaborations have fueled the
Golden Goose many collaborations have fueled the brand popularity and the hype does not seem to...
От Amaris Rush 2025-06-02 13:13:20 0 785
Shopping
The Hottest Collections Replica Dior Handbags
The Hottest Collections Replica Dior Handbags
От Remy Newton 2025-07-06 08:49:51 0 276
Networking
characteristics of automatic cnc pipe end forming machines What is the correct step to remove the hydraulic cylinder?
characteristics of automatic cnc pipe end forming machines is the current power...
От Aldyracom Aldyracom 2024-11-11 08:04:49 0 3Кб
Shopping
Las Vegas Raiders GM was shocked by Michael Gallups retirement
The lost one of their wide receivers before even taking the field at training camp on Wednesday...
От Merl Treutel 2025-05-15 02:15:49 0 830
Shopping
New Arrival Collections Miu Miu Sale
New Arrival Collections Miu Miu Sale https://www.miumiusshoes.com
От Adley Mclean 2025-06-14 09:19:03 0 635