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
Jeux
Harry Potter Series: J.K. Rowling Visits HBO Set
Today marked a significant milestone as J.K. Rowling visited the set of HBO’s highly...
Par Xtameem Xtameem 2025-11-22 02:17:13 0 962
Autre
Trusted Business Data Intelligence for Smarter Risk Management, Compliance Assurance, and Sustainable Growth—Verifyvista
In today’s data-driven world, gut instinct and guesswork are no longer enough. Modern...
Par Tarun Jrcompliance 2025-12-15 06:53:07 0 680
Jeux
Spanish Cinema Financial Crisis – Success & Setbacks
Spanish Cinema Faces Financial Crisis Despite Recent Successes Spanish filmmaking has experienced...
Par Xtameem Xtameem 2025-10-31 02:43:57 0 1KB
Jeux
Marvel Rivals Mod: Play as Dispatch Characters Now
Although Dispatch's first season has concluded, fans can continue to enjoy their favorite...
Par Xtameem Xtameem 2026-01-24 12:19:47 0 441
Jeux
Netflix June Releases – Movies, TV & Comedy Highlights
As June arrives, Netflix introduces a diverse lineup of entertainment options to kick off the...
Par Xtameem Xtameem 2026-01-28 13:45:03 0 333
Aldyra https://aldyra.com