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
Shopping
She on the carpet Loro Piana or casually strolling the
Choose a clean slate with tapered pant the silhouette looks intentional with everything from tank...
By Eloise Wong 2025-11-07 11:58:39 0 1K
Jocuri
Adobe Security Patches - Critical Flash, Reader Vulnerabilities
Adobe has released unscheduled security patches addressing critical vulnerabilities across Flash...
By Xtameem Xtameem 2025-12-19 00:10:29 0 562
Alte
Bangladeshi SMM Panel for Social Media Growth
In today’s fast-paced digital world, growing your social media presence is crucial for...
By Getmy Follow 2026-02-03 20:01:30 0 593
Alte
Flight Data Replay and Analysis Market 2026 | Trends, Growth & Forecast
The Flight Data Replay and Analysis Market is poised for substantial growth, driven by the...
By Caitan Cruz 2026-02-12 11:07:26 0 441
Jocuri
Genshin Impact: Himbeermündung Rettungsmission Guide
Himbeermündung Rettungsmission In Genshin Impact führt die Nebenquest „Auf in...
By Xtameem Xtameem 2026-01-24 02:13:50 0 481
Aldyra https://aldyra.com