When I try to import a key from the clipboard as described here:
https://bitwarden.com/help/ssh-agent/#import-key-to-bitwarden
I get
I see that…
“Imported keys must be in OpenSSH or PKCS#8 format”
…and…
“Additionally, at this time, imported SSH keys from Putty are not compatible.”
…but that still leaves some ambiguity.
Could you provide a sample file containing either of the supported formats?
In particular, I want to convert what is in my .ssh
folder (which was generated by ssh-keygen
).
1 Like
I have discovered that what is wanted is the key file as produced by ssh-keygen
.
In my case they are files found in ~/.ssh
.
These files begin with:
----BEGIN OPENSSH PRIVATE KEY-----
...
Finding this pretty frustrating. Seems like a very limited feature set.
I have a oracle cloud prive key that works fine
-----BEGIN RSA PRIVATE KEY-----
Yet I can’t add it to bitwarden to make it avaiable across my devices.
Kinda defeats the whole point? Oracle is only lie the 3rd most common vm provider in the world..
1 Like
I’m running into this with keys generated by MobaKeyGen (MobaXTerm SSH Key generator utility). It creates keys in ppk format, but with an option to export as OpenSSH and OpenSSH (new file format). I’m not sure what the difference is, only a few of the base64 characters are different when exported using either one.
If I use ssh-keygen it works fine, of course. I’ll put a test private key here (WHICH I AM NOT USING ANYWHERE) so devs can maybe see what’s wrong with this format.
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz
c2gtZWQyNTUxOQAAACBz2Mlzce/O8/NTMlUBeBR2Tbt3Wd0BRMRfCEl8YnZUwgAA
AKBMecrrTHnK6wAAAAtzc2gtZWQyNTUxOQAAACBz2Mlzce/O8/NTMlUBeBR2Tbt3
Wd0BRMRfCEl8YnZUwgAAAEAQUqjBjjTpjP1m8ISUoWrEjpGr/iLCmPBlRhG/cT7y
X3PYyXNx787z81MyVQF4FHZNu3dZ3QFExF8ISXxidlTCAAAAEnRlc3RfZm9yX2Jp
dHdhcmRlbgECAwQFBgcICQoL
-----END OPENSSH PRIVATE KEY-----