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
Other
Regional Developments Shaping the Seeds Market Landscape
The seeds industry plays a crucial role in the agriculture ecosystem, serving as the foundation...
By Tejas Kudale 2025-11-06 10:08:15 0 1K
Shopping
Saint Laurent they're an impressively talented group of designers
even created two mirroring versions of a grand ballgown with a dramatic basque waist in both lace...
By Emilia Hurley 2024-09-26 11:09:51 0 6K
Games
Spot Netflix Account Breaches - Unauthorized Access Signs
Concerned about unauthorized access to your Netflix account? Learn how to spot potential...
By Xtameem Xtameem 2026-01-15 10:27:12 0 86
Games
Netflix Dark: German Series Debuts—Supernatural Mystery
Netflix ventures into German storytelling with its first original series from the region, titled...
By Xtameem Xtameem 2026-01-16 00:24:50 0 69
Games
NordVPN Call Protection: New Anti-Scam for Android UK & CA
NordVPN Expands Anti-Scam Features to UK and Canadian Android Users Android users in the United...
By Xtameem Xtameem 2025-11-21 01:17:23 0 678
Aldyra https://aldyra.com