Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Anonymous
3 years agoBug - op fails getting SSH key
using 1password-cli v 2.20.0. on amazon linux 2023
op item get 'Demo SSH Key'
[ERROR] 2023/09/06 07:20:26 unsupported key type "RSA PRIVATE KEY" passed with the PEM
doing the same with ve...
Anonymous
2 years agoHi andi_t_1P thank you for looking into it.
I don't recall when or how this key was created possibly it was created by an older openSSH or I think it might have been created by Amazon as part of AWS EC2 deployment
looking at such problematic keys I can see that it's 2048 bit and it is in the format of
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
I can confirm that newer keys that I create in the format of "-----BEGIN OPENSSH PRIVATE KEY-----" seem to work without an issue.
with the above hint I was able to reproduce the issue using
ssh-keygen -t rsa -b 2048 -m PEM -f <filename>
which in turn leads to the following ERROR message when downloading it from OP using cli
```
[ERROR] 2023/11/27 13:54:27 unsupported key type "RSA PRIVATE KEY" passed with the PEM
```