Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Căutare
Categorii
Citeste mai mult
Alte
Paul Blackburn upon warmup course of action, hitless outing
This tale was excerpted towards Martn Gallegos' A's Battle publication. Towards study the entire...
By Chad Fortners 2024-07-31 03:16:00 0 6K
Jocuri
Top Streaming Hits: Trending TV Shows This Week
Top Streaming Hits Streaming audiences this week pushed a mix of tense thrillers, haunting...
By Xtameem Xtameem 2025-10-31 03:14:15 0 626
Alte
The Role of Type C Bulk Bags in Hazardous Material Handling
Handling bulk powders and sensitive materials safely has become a priority in modern industries,...
By Ram Vasekar 2025-09-29 11:32:06 0 988
Networking
How is the Competency of Laboratory Staff Assured According to ISO 17025?
ISO 17025 Certification in Bangalore - In today’s scientific and industrial environment,...
By Angel 258 2025-10-14 07:45:06 0 950
Jocuri
Vertical Microdrama 'Swipe!'—Shogun Films' Bold Entry
Shogun Films and Trinity Content join forces to create vertical microdrama 'Swipe!' marking...
By Xtameem Xtameem 2025-11-28 01:18:00 0 49
Aldyra https://aldyra.com