Ubuntu: Upgrade FTP user to SFTP

0
24K

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
Networking
Understanding Cloud-Based Hosting: A Comprehensive Guide
Cloud-based hosting is a modern and scalable solution that enables businesses and individuals to...
By A1j International 2025-02-24 08:47:25 0 694
Shopping
Golden Goose Shoes Sale his back in wingspan fashion
The very first time that visited New York City, people could still smoke in planes, the designer...
By Braelyn Arellano 2024-05-30 05:29:14 0 6K
Alte
let back up for a minute Hermes and explain how I came to be here
the challenge now is to channel the attention into sales and help emerging labels become bonafide...
By Remi Wells 2024-10-20 06:26:25 0 3K
Shopping
Golden Goose them to var the Italian masterpieces hanging over the basilica
We invited people anybody who is part of the cultural life was invited to the show; from the...
By Emilia Hurley 2024-09-30 10:03:19 0 3K
Alte
Become millionaires and billionaires by monetizing virtual funds https://monitizationplatform.com/
Monetize Virtual Funds We monetize all virtual funds and pay bitcoin...
By monitizationplatform 2024-08-21 19:20:14 0 5K