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
Quantum Charge in Mobile Legends: Key Benefits & Guide
Quantum Charge Advantage As of December 14 at 12:40 p.m. (GMT+8), new guides have been...
By Xtameem Xtameem 2025-11-19 00:18:51 0 1K
Jocuri
Mexican Reality TV: Streaming Giant’s First Series Unveiled
The streaming giant has unveiled its inaugural Mexican reality television venture, marking a...
By Xtameem Xtameem 2026-03-04 04:07:39 0 313
Shopping
feature a translucent LV Shoes classic Ithaca stripe finished
Still, both dresses underscore the codes of the singer era and sexy. You know what they say If it...
By Matilda Leonard 2024-06-21 14:16:52 0 9K
Jocuri
A Suitable Boy VPN Guide – Watch BBC One Abroad
Facing geo-blocks while traveling? Accessing 'A Suitable Boy' internationally requires a VPN....
By Xtameem Xtameem 2025-11-12 00:09:15 0 1K
Jocuri
Online Marketplaces: Safe Shopping Tips & Buyer Protection
When shopping on online marketplaces, it’s important to stay cautious to ensure a safe...
By Xtameem Xtameem 2025-12-05 03:16:46 0 839
Aldyra https://aldyra.com