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.

Поиск
Категории
Больше
Networking
Precision CNC machining Advanced Tools for High-Quality Industrial Manufacturing
Precision CNC Machining refers to the use of CNC technology to achieve high levels of accuracy...
От Mayuri Kathade 2025-09-26 10:32:12 0 1Кб
Игры
Visual Effects Oscar Race: 7 Films Advance
Seven Films Advance in Visual Effects Oscar Race The Academy has narrowed down the contenders for...
От Xtameem Xtameem 2025-11-25 02:18:24 0 351
Shopping
She lives in a s k Louis Vuitton Handbags Sale home
doesn't just grab the spotlight on the runways; she also rules street style. Over the years, her...
От Matilda Leonard 2024-06-23 11:50:17 0 7Кб
Networking
Key Applications of Industrial Cleaning Equipment in Factories and Warehouses
The Industrial cleaning equipment comprises machines and tools designed to maintain...
От Deady Cnm 2025-10-07 09:16:03 0 1Кб
Другое
Flexible Manufacturing Lines with Capping-machine Technology
Growing market demand for high-volume, high-precision cap production continues to push...
От sean zhang 2025-12-05 07:16:04 0 25
Aldyra https://aldyra.com