Ubuntu: Upgrade FTP user to SFTP

0
28K

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
The Role of Shale Gas in Transforming the Light Olefins Market
The global light olefins market is experiencing steady growth as industries recognize their...
By Ram Vasekar 2025-08-25 10:31:49 0 2K
Alte
Sustainability in Wind Farm Transport and Heavy Lifting Operations
Manufacturing is the cornerstone of today's industry and business, enabling the production of...
By Priya Singh 2025-09-20 13:41:57 0 1K
Jocuri
AT&T U-verse Voice Outage: Nationwide VoIP Disruption
AT&T's U-verse Voice service suffers a widespread disruption, leaving fiber-optic customers...
By Xtameem Xtameem 2026-01-15 01:55:10 0 107
Alte
Folding Cartons Market: Trends, Challenges, and Opportunities in 2025
The demand for sustainable packaging solutions has significantly reshaped the folding cartons...
By Ram Vasekar 2025-09-17 11:44:49 0 1K
Fitness
From USD 1.28B in 2025 to USD 2.06B by 2033: Quartz Glass Market on a Strong Growth Trajectory
Quartz Glass Market Overview The global Quartz Glass Market size was valued at USD 1.21...
By Mahesh Chavan 2025-10-30 08:10:12 0 2K
Aldyra https://aldyra.com