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
Crafts
Should procurement include recyclable packaging options in supplier briefs
In an era when infrastructure projects and clean energy rollouts are reshaping supply chains,...
By Jason Robby 2025-11-11 08:14:07 0 1K
Jocuri
Exodus Modules: ARC Raiders Location Guide
Exodus Modules Location Tips Locating Exodus Modules in ARC Raiders requires targeting specific...
By Xtameem Xtameem 2026-02-04 06:58:11 0 628
Alte
Key Drivers Propelling the Unprecedented Time Tracking Software Market Growth
The global workforce is undergoing a transformation of historic proportions, and this seismic...
By Harsh Roy 2026-03-13 10:02:17 0 562
Jocuri
Browser Security Flaws: Hustle Labs Research
While security conferences often showcase daring exploits, the real value lies in meticulous...
By Xtameem Xtameem 2025-12-27 00:58:35 0 657
Shopping
DoorDash Super Bowl commercial A list of things you can win by cracking All the Ads code
Super Bowl 58 is almost here, with the 49ers set to take on the Chiefs Dexter Lawrence Jersey for...
By Merl Treutel 2025-05-15 02:09:30 0 3K
Aldyra https://aldyra.com