Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoSSH Keys not able to be accessed by the 1Password CLI
When fetching a SSH key via op item get
, it reveals the category value as SSH_KEY
```
op item get 'redacted' --vault personal
ID: redacted
Title: redacted
Vault: Personal (redacted)
Created: 19 minutes ago
Updated: 19 minutes ago by redacted
Favorite: false
Version: 1
Category: SSH_KEY
```
Yet trying to list by that category returns failure:
```
op item list --categories SSH_KEY
[ERROR] 2022/04/28 13:47:56 Unknown item category SSH_KEY
```
1Password Version: 8.7.0
Extension Version: Not Provided
OS Version: macOS 12.3.1 (21E258)
- Former Member
Hey @balupton !
Thank you for reaching out to us!
It seems, for some reason, that the code/commands that you've attached did not render properly, is there any chance that you could attach them again?By reading your question, I think the problem is that a command such as "op item list --categories SSH_KEY" does not work, is this correct? If the case, I think
--categories SSHKey
or--categories "SSH Key"
should do the trick. This is, admittedly, counterintuitive, and we do have an internal issue tracking the standardisation of such key words across the CLI.I'm looking forward to hearing from you!
Best,
Horia