Ubuntu: Upgrade FTP user to SFTP

0
28χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
άλλο
Evolving Dynamics and the Global Security Operation Center Market Trends
  The Global Security Operation Center Market trends are reshaping how enterprises address...
από Sssd Ddssa 2025-10-25 05:32:48 0 1χλμ.
Παιχνίδια
4chan DDoS Attack: Forum Becomes Target of Online Assault
The popular internet forum 4chan found itself under a distributed denial-of-service assault, a...
από Xtameem Xtameem 2026-01-21 02:39:43 0 420
Παιχνίδια
Zodiac Killer Case: New Docuseries Reveals Shocking Evidence
The elusive Zodiac Killer case continues to haunt true crime circles decades after the chilling...
από Xtameem Xtameem 2025-11-19 00:59:21 0 953
Παιχνίδια
Twitter's Fragile Infrastructure - The Social Media Challenge
These digital assaults reveal Twitter's fragile infrastructure, despite serving 44 million users...
από Xtameem Xtameem 2025-12-20 02:38:33 0 545
άλλο
AI Analyst vs Data Scientist: Which Career Is Right for the Future?
There is no doubt, we live between machine intelligence and data-driven systems. From the voice...
από Digicrome Academy 2025-11-13 08:04:03 0 1χλμ.
Aldyra https://aldyra.com