Ubuntu: Upgrade FTP user to SFTP

0
27Кб

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
Golden Goose and thoroughness in curating a program
One show will never forget is the fall show invited me. do not think it was necessarily his all...
От Adalynn Cunningham 2025-07-29 09:57:18 0 2Кб
Health
Whatsapp +97433711266 Buy Cocaine, Heroin, Shrooms in,Riyadh,Jeddah, Dammam
Whatsapp +97433711266 Buy Cocaine, Heroin, Shrooms in,Riyadh,Jeddah, Dammam CBD oil Qatar, CBD...
От Mohammed Saad 2025-08-15 05:42:10 0 1Кб
Health
Golden Goose Sneakers Sale the excitement of the the exact modernity
love being transported into a world that someone created through their mind think that the goal...
От Amaris Rush 2025-05-22 09:05:04 0 2Кб
Dance
Ole Pass up basketball hits the street towards Athens for a cant drop contest
Chris Beard will deliver his workforce in the direction of Athens Tuesday evening toward acquire...
От Bregman Alex 2024-10-09 08:28:25 0 5Кб
Другое
Organic Biogas Market : Size, Share, and Growth Opportunities 2025 –2032
"Executive Summary Organic Biogas Market Trends: Share, Size, and Future...
От Data Bridge 2025-11-03 04:45:13 0 248
Aldyra https://aldyra.com