Ubuntu: Upgrade FTP user to SFTP

0
28KB

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.

Rechercher
Catégories
Lire la suite
Shopping
sustainability requirements it Saint Laurent Outlet has implemented
I always get a little nervous packing my as the mere thought of them being crushed is enough to...
Par Priscilla Gamble 2025-01-12 05:09:34 0 4KB
Jeux
Harlan Coben’s Run Away – Netflix Thriller Unveiled
The relentless pace of Harlan Coben’s Netflix adaptations continues with the release of the...
Par Xtameem Xtameem 2025-12-26 00:28:32 0 440
Shopping
The Hermes Herbag Bags majority of the shown at fashion week are meant
It was so packed it was so cool the audience was always the most insanely dressed people I had...
Par Priscilla Gamble 2025-01-05 04:41:55 0 3KB
Networking
The Architecture of Power: Analyzing Global Dominance in Energy Storage
The BESS Market Share has entered a phase of intense consolidation and strategic realignment...
Par Rupali Wankhede 2026-02-12 11:07:58 0 297
Jeux
Netflix Email Scams: Huntsville Residents Alerted
A recent surge in email scams has raised concerns among residents in Huntsville, Alabama, with...
Par Xtameem Xtameem 2026-01-28 04:38:47 0 334
Aldyra https://aldyra.com