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.

Поиск
Категории
Больше
Другое
Low Density Polyethylene Market Analysis by Region and Application
The low density polyethylene (LDPE) market has witnessed a remarkable surge in recent years,...
От Ram Vasekar 2025-08-25 14:56:30 0 2Кб
Игры
Last War: Survival Diamonds – Best Ways to Spend
In Last War: Survival, diamonds are a prized resource that can dramatically influence your...
От Xtameem Xtameem 2025-12-02 05:24:40 0 544
Игры
Marvel Rivals Challenges – Key Issues & Community Reactions
Currently, Marvel Rivals faces numerous challenges that have stirred frustration among players....
От Xtameem Xtameem 2025-11-29 04:15:34 0 635
Игры
Windows 7 Memory Leak: BSOD Risk and Fixes Explained
A screenshot shared by tester Jordan M. Jacob reveals a concerning memory leak during Windows 7...
От Xtameem Xtameem 2025-12-20 01:15:07 0 344
Игры
MLB The Show 25 Halloween Event – Diamond Dynasty Guide
October has arrived, bringing a spooky twist to MLB The Show 25 with the new Halloween-themed...
От Xtameem Xtameem 2025-12-10 03:29:24 0 452
Aldyra https://aldyra.com