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.

Zoeken
Categorieën
Read More
Other
2 1 3 2 Dioxaphospholane 2 Oxide Market: Industry Trends Shaping Flame-Retardant and Pharmaceutical Applications
The 2 1 3 2 dioxaphospholane 2 oxide market is evolving as specialty chemical manufacturers focus...
By Harshal J72 2026-01-23 09:38:49 0 697
Shopping
2025 August Most Popular Styles Loro Piana Sale
2025 August Most Popular Styles Loro Piana Sale
By Makayla Rivers 2025-08-28 07:15:20 0 2K
Spellen
Katherine Ryan's Netflix Projects: 'The Duchess' Series
Katherine Ryan, the British-based comedian and actress, is set to make her mark on Netflix with...
By Xtameem Xtameem 2026-03-08 00:40:46 0 209
Spellen
Cannes Film Festival: DVD's Growing Influence
The Cannes Film Festival has expanded its scope to include the DVD format as a key element of its...
By Xtameem Xtameem 2026-01-29 00:56:34 0 541
Spellen
Netflix's First Colombian Series – Amazon Mystery Unveiled
I'll rewrite the article about Netflix's first Colombian original series. Colombia Takes Center...
By Xtameem Xtameem 2026-02-13 09:20:52 0 345