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
Jocuri
Threads 2.0 Promotion - MLB The Show 25
The excitement surrounding the trade deadline is a hallmark of each Major League Baseball...
By Xtameem Xtameem 2026-01-27 00:19:47 0 125
Alte
Compact LV Switchgear Market Growth & Trends 2025
Compact Lv Switchgear, Compact LV switchgear provides space-saving,  efficient,  and...
By Rupali Wankhede 2025-09-16 12:20:44 0 1K
Jocuri
Haste Is A High-Speed Adventure Across a Collapsing World
Haste is an action-packed, fast-paced runner that challenges players to navigate a constantly...
By Rodeoneerer Rodeoneerer 2026-01-28 07:32:21 0 115
Alte
ncevalve: A Welded Filter Ball Valve Producer Serving Fluid Control In Heavy Industry
A dedicated Welded Filter Ball Valve Producer, ncevalve deploys cutting-edge manufacturing...
By Naishi Valve 2025-12-11 03:29:49 0 710
Jocuri
Disney-Roblox Partnership: Safety Concerns
Despite the ongoing efforts by major players in the entertainment industry to expand their...
By Xtameem Xtameem 2025-12-18 14:15:26 0 508
Aldyra https://aldyra.com