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.

Search
Categories
Read More
Games
Film Fashion Influence: Trends, Icons & Shifts
Film's grip on fashion proves elusive amid color councils and forecasts An inexact science still...
By Xtameem Xtameem 2025-11-13 01:45:29 0 1K
Shopping
Hermes punctuated with a red rose lapel pin and silky
Call it a cooler, grungier take on dressing; the way of wearing the pattern is all about...
By Simone Andersen 2025-10-31 09:25:36 0 1K
Games
Egress Data in Motion Security – Protecting Transfers
Egress has launched an innovative security approach focused on protecting data during...
By Xtameem Xtameem 2025-11-05 00:12:00 0 1K
Games
Nobody Wants This – Top Romantic Moments on Netflix
Top Romantic Moments Set aside your snacks and your favorite ice cream for a moment, because...
By Xtameem Xtameem 2025-11-13 00:27:06 0 1K
Games
Live Streaming Platforms – Top Free Apps Reviewed
Top Live Streaming Platforms A picture is worth a thousand words, and a video clip can convey...
By Xtameem Xtameem 2025-11-25 06:34:16 0 988
Aldyra https://aldyra.com