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

[Bug] Cannot SSH into a server that has only key-based authentication configured. #1393

Closed
w1nsid opened this issue Sep 10, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@w1nsid
Copy link

w1nsid commented Sep 10, 2023

Describe the bug

SSH doesnt work when key based authentication is configured and password authentication disabled.

To Reproduce

  1. Set sshd config to only accept key based authentication.
  2. Access terminal through CasaOs dashboard.

Logs

10T20:26:19.274+0100 error connect ssh error {"error": "ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain", "func": "v1.PostSshLogin", "file": "/home/runner/work/CasaOS/CasaOS/route/v1/ssh.go", "line": 42}

@w1nsid w1nsid added the bug Something isn't working label Sep 10, 2023
@jerrykuku
Copy link
Contributor

The CasaOS web terminal currently only supports username and password login, not key-based login.

@jerrykuku
Copy link
Contributor

This issue has not been updated for two weeks, I will close it, if there are still questions you can reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants