clariso
asked on
What type of OpenSSH key?
I have an example of a public key (I do not have the matching private key):
AAAAB3NzaC1kc3MAAACAc/gsM3 sPH0chLFps smf28dORdP XkTNQy7ldi 2A9QfQ5YA/ k2Zufz9ZNY 2x027sLkZi 3rGpWBepwD XGz1RCVMJg wAa03Td3Ou IAOq3rRkZ5 TBYaXszYWF A6sQDOtErx 7FRagCuODC PTVxqVqW9g A7qgy3XLK3 eea8AxQdqC CwJ8EAAAAV AL4B9vIjLo nmr+KcBqzj /KG0f4YFAA AAgDbeKXC+ Lgb6iBX6mY 8TG+kQbrbb iiJ7QD0Bi7 PBorDpSsa7 IDLOB0P4Oh XK6sjY8rQk zdD7GRIwzt we+jkXtFJ+ 3hp650p/IT UZmLTWwHt+ zobiyXIXmw ZHF+GacaQK q5LDEafzOo MqA1RSuPly Ha/eUlaCCA rw3v0OPTpP ew0NAAAAgD W+aRNC8yci Gm9N02jyum uiuBKaprVk RuaF/XbEKd nATRurNLAa 9b/hmvgF9K jDbxnieqs3 grhxLDP8lo rrmhEa+Enb lJVrKrUphO pFD8w/8Vm4 YlZBhk0m/1 wHw3S5K7Ks FaEL91guq+ B7b0hug7Sj Pk33YgKPHP 0njxyYY5lK
Although it looks like OpenSSH format, it is missing the first part which says what type of key it is (e.g. ssh-dss, ssh-rsa etc).
Is there any way of working out what type it is?
AAAAB3NzaC1kc3MAAACAc/gsM3
Although it looks like OpenSSH format, it is missing the first part which says what type of key it is (e.g. ssh-dss, ssh-rsa etc).
Is there any way of working out what type it is?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I can read your key (just copy-and-paste via PuTTY) without any issue and get this:
ssh-dss AAAAB3NzaC1kc3MAAACAc/gsM3 sPH0chLFps smf28dORdP XkTNQy7ldi 2A9QfQ5YA/ k2Zufz9ZNY 2x027sLkZi 3rGpWBepwD XGz1RCVMJg wAa03Td3Ou IAOq3rRkZ5 TBYaXszYWF A6sQDOtErx 7FRagCuODC PTVxqVqW9g A7qgy3XLK3 eea8AxQdqC CwJ8EAAAAV AL4B9vIjLo nmr+KcBqzj /KG0f4YFAA AAgDbeKXC+ Lgb6iBX6mY 8TG+kQbrbb iiJ7QD0Bi7 PBorDpSsa7 IDLOB0P4Oh XK6sjY8rQk zdD7GRIwzt we+jkXtFJ+ 3hp650p/IT UZmLTWwHt+ zobiyXIXmw ZHF+GacaQK q5LDEafzOo MqA1RSuPly Ha/eUlaCCA rw3v0OPTpP ew0NAAAAgD W+aRNC8yci Gm9N02jyum uiuBKaprVk RuaF/XbEKd nATRurNLAa 9b/hmvgF9K jDbxnieqs3 grhxLDP8lo rrmhEa+Enb lJVrKrUphO pFD8w/8Vm4 YlZBhk0m/1 wHw3S5K7Ks FaEL91guq+ B7b0hug7Sj Pk33YgKPHP 0njxyYY5lK
I tried with OpenSSH_5.8p1 and OpenSSH_6.0p1. Both work.
ssh-dss AAAAB3NzaC1kc3MAAACAc/gsM3
I tried with OpenSSH_5.8p1 and OpenSSH_6.0p1. Both work.
ASKER
I've just tried the one I posted at the top, and it works for me too (using OpenSSH_6.2p2). Others that I'm trying give the errors, such as:
AAAAB3NzaC1kc3MAAAEBAO43lL vmKBQ9ZUVo PWCd/QNthm yNQyzWut7e nDPuaX1Q5o uoGx8zPrMD qh9uoZSaRY 51H6Vmwuur /idrvV69Gj 2JvbSG6KCk Vdt8XBKVDu gaEBa8qGJd YrhWK4Yaxr w7meYc9JMI UOx97AxY7c IVWFATjWIL B2f29Rhvfs JaJPQcaLuU rbHYmYjull xQexj4S6kH n0yk3AqN5d SubouGAov2 zIxT4PzXWN W8EqNz5tZu UKYaV9GiQI idbLdYsNZk xZnUTkPE/1 DnOeRuL9hE 4EtevXk1KW TbC+jc/2/7 jt/mow4+a1 PKhtN222cO CHpkURfhG7 6XT9Zoi1NC gfu3OG8AAA AVAL9dbznJ oxhgn+Jx1x Lc/TfY9Svj AAABAQC42Q KQJBxYXx25 IwVFvtojoL XoYCJCx7UA blycdwQlyQ gxMFHu3Sfq Kn29NtYLF5 iVR8OYrXqd QjWAXccbaH J8szN7dvuW NEffQcz0wU iPbwgkAY6z fB8zgQS+/4 UmSgd/TczG mKdeC5kQY1 DeClW/Ezaa O8a1YtzyYe BrQwVt9CZk p2SUJZMS2Q JVTf7589s3 rNq5wXG+NO wk9mjuwp1l 7BGnRmS44T mZUbkl+KcX QjJEqhSqDL IqCcun4/e0 rfDhqP0LZD WrY8VwhigE alLH7MXVAX c8arOCBOlf 3z/Md6DJWc MIDCPs8VEm DOBpSi6+/o ib6VXnsjGD Fp1l7uOaAA ABAFxQsFwk KJf2U4Bh9r EHMQACLezD 53k1OIH3Cj J/b49cQg5q eLwY5u9MH3 01cW7LaVYq 19ch2xma2X HEqWn1v2ui TgqCBt87vf smtWM4y1Gy fwNg98ElnV mqEvsj3fzD sO9R06Uc8A R+oJEAzVt/ tlJ7YJJIl1 2HcAsEky6U W9ZhuUmmg3 SROChtQvVp 5aogD/2cbz tq4xHyQdve LQq+rgtc1U x9yLW0VPYq 5LTA+YWFvi Z8K5dr0wDa QS2/NOu9ai 8wE2AGaZaI vLOfAg9ouW tMa7d6fWRf 7HpgFmTP+M L6qsKNgjz/ MIbqOQW4Lz qRm09Xoi6J Dwsa5VuAuY M8OAU=
(gives "input line too long")
and
AAAAB3NzaC1yc2EAAAABIwAAAQ EAmPvRVRtj LtEIrshnXL w5DszWEKhj pZXoyV8KCu n+uy9Y90zj Im8uqCnlfd xfSPzG7dpm 4PoUYqQ0mE N6NMk1DGtw kVIh9xtQK6 pvm9zLDvgR U7N0RT+oOm AQEIiwn+gg 8OiC0y8PsQ Um5zfABHYS T68MzOypdS Z87za+8voT pSEIRGHlzE 9dEFwSkrZ6 +AHil/Zcjj T/A0r5KQ9L IgkR10Q1Sh Bie7vGPlg8 bUQD6ZHO3t 0xYVwVRfNT WPUCnR/ExH axoqFCuJ+k v+Am2HTuWN PEJiczcqrc dhlfBgg44e M+fH8ZvlbO ehleYR37wc lBSPDurrj4 PBZX239HUs Nx5w==
(gives the buffer error)
AAAAB3NzaC1kc3MAAAEBAO43lL
(gives "input line too long")
and
AAAAB3NzaC1yc2EAAAABIwAAAQ
(gives the buffer error)
I cannot convert them either. Those files might be corrupted or incomplete.
Both seem to contain (part of?) RFC4716 converted OpenSSH keys.
I tried the other key formats nonetheless, but they don't work (as expected).
Can you get new versions of the keys (perhaps by retransmitting them from where they originally came from)?
Besides that, I fear it will not be possible to repair those files, at least I don't know how it could be done.
Both seem to contain (part of?) RFC4716 converted OpenSSH keys.
I tried the other key formats nonetheless, but they don't work (as expected).
Can you get new versions of the keys (perhaps by retransmitting them from where they originally came from)?
Besides that, I fear it will not be possible to repair those files, at least I don't know how it could be done.
ASKER
The strange thing is that they still work in our old SFTP software (CoreFTP), but our new software (Cerberus FTP) requires them to be proper OpenSSH keys (hence me needing to add the first bit on).
Therefore I don't believe they are corrupt.
Anybody else got any ideas?
Therefore I don't believe they are corrupt.
Anybody else got any ideas?
ASKER
I think that for the ones which don't work, it was an issue with how they were transferred to my *nix box (which has the ssh-keygen application).
I'm all sorted now.
Many thanks for your help!
I'm all sorted now.
Many thanks for your help!
ASKER
The original post actually solved the problem, but issues my side prevented me from being able to use it!
ASKER
buffer_get_ret: trying to get more bytes 4 than in buffer 0
buffer_get_string_ret: cannot extract length
key_from_blob: can't read key type
decode blob failed.
or
input line too long.