Ubuntu: Upgrade FTP user to SFTP

0
25K

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.

Pesquisar
Categorias
Leia Mais
Shopping
Saint Laurent Sale all have on our radars
EmRata Wore Sweats for a Possible Date With Pete Davidson In the most inevitable news of the week...
Por Shiloh Copeland 2024-07-23 05:28:20 0 6K
Shopping
GGDB Shoes photographed in leather pants made to look like
And with good reason according to an official Request For Data and Information on Trinidad and...
Por Shiloh Copeland 2024-07-25 08:21:43 0 6K
Shopping
refuting that Dior Handbags Sale as they create new avenues for
while has been known for cheeky after party and ment making bridal her latest exclusive...
Por Priscilla Gamble 2025-01-09 04:32:52 0 2K
Shopping
Patrick Mahomes wants to help Chiefs WR Rashee Rice get on the right path following tumultuous offseason
Patrick Mahomes wants to do everything he can to help Chiefs wide receiver Rashee...
Por Merl Treutel 2025-05-15 02:30:29 0 821
Health
Dior Bags Outlet the two style types
My lifeand our life togetherrevolves around cycling, not just because we love to compete, but we...
Por Jane Massey 2024-07-27 09:03:57 0 6K