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
Beauty in Black Season 2 – Power Shift & Drama
New Season and Power Shift The second half of Tyler Perry’s Beauty in Black Season 2...
By Xtameem Xtameem 2026-01-08 04:46:22 0 282
Alte
Polymer Bearing Market Dynamics: Innovation in High-Performance Polymers and Composite Materials
Demand for polymer bearings varies significantly by industry, influenced by operational...
By Ram Vasekar 2026-01-20 09:23:56 0 310
Alte
Snorkel Intake Kit Market Size, Growth Trends & Forecast | Research Intelo
The global Snorkel Intake Kit Market is gaining steady traction as demand for enhanced vehicle...
By Caitan Cruz 2026-01-23 14:20:42 0 244
Jocuri
nba2king Mastering Dribbles in NBA 2K26 Based on Player Height
If you’ve been keeping up with NBA 2K26, you already know how overwhelming all the build...
By Joenxxx Xxx 2026-01-07 00:19:20 0 310
Jocuri
NHK Plus VPN – Best VPNs to Watch NHK Abroad
Best VPN Options for NHK Plus Watching NHK content in the United States can be a challenge due...
By Xtameem Xtameem 2025-11-23 00:33:54 0 755
Aldyra https://aldyra.com