Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Buscar
Categorías
Read More
Juegos
Broadway Wizarding World: Film Star's Triumphant Return
Broadway Erupts as Film Star Returns to Wizarding World The audience at Broadway's magical stage...
By Xtameem Xtameem 2025-11-17 02:03:36 0 255
Health
Whatsapp +97433711266 Buy THC oil in Sydney Australia
Whatsapp +97433711266 Buy THC oil in Sydney Australia  CBD oil Qatar, CBD oil Qatar online...
By Mohammed Saad 2025-08-15 05:45:43 0 1K
Juegos
Starlink VPN: Secure & Stream Globally—Setup Guide
Securing your online activities and unlocking global content via Starlink requires a...
By Xtameem Xtameem 2025-11-23 01:10:29 0 53
Shopping
Rongchuang Packaging Machine Integrations Support Versatile Product Handling
Revolutionizing Production Efficiency with Modern Equipment In today's fast-paced manufacturing...
By Kevin Lester 2025-09-12 03:19:55 0 1K
Juegos
Melissa Worm – 10 Years After: Cybersecurity Lessons
Reflecting on a Digital Milestone: A Decade Since the Melissa Worm Ten years have passed since...
By Xtameem Xtameem 2025-11-09 00:01:41 0 371
Aldyra https://aldyra.com