Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent Authentication Failure with Chisel Server After Updating users.json #493

Open
muhammad-tahir-nawaz opened this issue Jan 29, 2024 · 0 comments

Comments

@muhammad-tahir-nawaz
Copy link

muhammad-tahir-nawaz commented Jan 29, 2024

Description

We are experiencing intermittent authentication failures with our Chisel server, specifically after updating the users.json file to add new users. This issue causes all clients to be unable to authenticate, displaying the error: "ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain."

Steps to Reproduce

  1. Run Chisel server with authentication enabled, using a users.json file for user management.
  2. Update users.json by adding new user credentials.
  3. After updating, Chisel clients experience authentication failures with the above error message.
  4. Restarting the Chisel server resolves the issue temporarily.

Expected Behavior

Updating the users.json file should not disrupt the ongoing authentication process, and new users should be able to authenticate without requiring a server restart.

Actual Behavior

Upon updating the users.json file, all clients, including those with existing valid credentials, are unable to authenticate until the Chisel server is restarted.

Additional Information

  • Chisel server and client versions: 1.9.1
  • Server OS: Kubernetes Cluster in GCP (linux) (Kernel Version: 5.15.133+)
  • Client OS: Ubuntu 20.04.6 LTS
  • Frequency of the issue: Occurs randomly upon updating users.json.
  • Any patterns noticed: Issue persists even after reverting the users.json file to its previous state.

I am seeking guidance on why this issue occurs and how to prevent it from happening in the future. Any insights or suggestions from the community would be greatly appreciated.

Thank you!

@muhammad-tahir-nawaz muhammad-tahir-nawaz changed the title Intermittent Authentication Failure with Chisel Server After Updating user.json Intermittent Authentication Failure with Chisel Server After Updating users.json Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant