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
Aaron Boone insists Devin Williams is still very close after latest Yankees implosio
Acce s the Yankees beat like never before Join Post Sports+ for exciting subscriber-only...
От Ebony Ortiz 2025-11-18 02:07:36 0 409
Игры
Family Film & TV Awards 2024 – Nominees & Highlights
The Family Film & TV Awards spotlight entertainment that unites generations, with Julie Chen...
От Xtameem Xtameem 2025-12-01 01:16:57 0 132
Shopping
How Gusumachinery Candy Bar Line Solutions Improve Factory Workflow
Candy Bar Line systems are becoming increasingly important in confectionery factories where...
От jsszgusufood jsszgusufood 2025-12-02 01:29:49 0 119
Другое
How ASRS Technology is Transforming Supply Chain Efficiency
The automobile sector is still one of the most crucial sectors shaping industrial as well as...
От Priya Singh 2025-11-13 16:53:58 0 531
Networking
What do you come into contact with in your daily life? maintenance for automatic cnc pipe end forming machines?
The domestic industry should catch up with the technological level of foreign countries,...
От Aldyracom Aldyracom 2024-08-29 07:46:38 0 6Кб
Aldyra https://aldyra.com