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.

Поиск
Категории
Больше
Игры
VPN for PBS Streaming – Top Choices & Easy Access
Top VPNs for PBS Streaming Accessing PBS internationally is straightforward with the right VPN...
От Xtameem Xtameem 2025-11-02 06:23:35 0 707
Networking
Innovations Enhancing Quality and Versatility of Fiberglass Materials
The engineered material known as Fiberglass plays a critical role across diverse industries due...
От Deady Cnm 2025-11-17 06:45:08 0 599
Health
Why Organizations Are Increasing Investment in Optimization Tools for Procurement
In recent years, procurement leaders have faced a rapidly changing business environment marked by...
От Divya Patil 2025-11-30 08:08:51 0 356
Игры
Rosalia Genshin Impact : Guide complet – Astuces & builds
Guide de Rosalia dans Genshin Impact Depuis la mise à jour 1.4, Rosalia a su...
От Xtameem Xtameem 2025-11-13 02:38:48 0 517
Health
Worldwide Opportunities and Barrier Analysis for Human Tuberculosis Vaccine Developers
The global focus on tuberculosis prevention continues to intensify as countries confront the...
От Divya Patil 2025-11-30 05:41:49 0 297
Aldyra https://aldyra.com