-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
"The SSH key is invalid" when using 'Import key from clipboard' on Windows #13151
Comments
Thank you for reporting this issue! We've added this to our internal tracking system. |
Hi! Which application did you generate the SSH key that you are trying to import in initially? |
I'm having the same issue, I used |
@quexten - I can't remember. It would have been bash or powershell with openssl. I use both heaps. Possibly Windows...? I don't think it matters though because it seems to be an order of operations issue, not a SSH keygen issue. |
If you follow my 'FUNCTIONING WORKFLOW' example in the original post, does that work for you? Can you re-copy it to the clipboard before hitting the final button? |
Yes, that does apply a key. |
@Roan-V Likely if your SSH private key file is encrypted with a passphrase, whereas upon import to Bitwarden the private key remains unencrypted leading to the differences seen |
Ah, that makes sense |
Hello everybody, Just to confirm, exactly same behavior for me on macOS. ...and workaround works ok. Have a great day everyone. |
Steps To Reproduce
Requirements
NON-FUNCTIONING WORKFLOW
ERROR: The SSH key is invalid
FUNCTIONING WORKFLOW
The key is imported correctly
Expected Result
The SSH key should be cached after clicking 'Import key from clipboard', so you're able to copy the passphrase from another location into the clipboard to paste into Bitwarden.
Actual Result
ERROR: 'The SSH key is invalid' is shown.
It seems the issue is that Bitwarden is validating the clipboard after first clicking 'Import key from clipboard' but isn't caching it.
You then copy the passphrase to clipboard and so Bitwarden now doesn't know what the private key is anymore.
When you click 'Import' it's trying to re-validate the passphrase in the clipboard as an SSH key, can't and so throws the error.
If you follow the working workflow above and re-copy the SSH private key to the clipboard before clicking import, then the key is imported correctly.
Screenshots or Videos
No response
Additional Context
Bitwarden version details
Version 2025.1.3
SDK 'main (28c7e29)'
Shell 33.2.1
Renderer 130.0.6723.137
Node 20.18.1
Architecture x64
Operating System
Windows
Operating System Version
Windows 11 - 23H2 (OS Build 22631.4751)
Installation method
Other
Build Version
2025.1.3
Issue Tracking Info
The text was updated successfully, but these errors were encountered: