Forum Discussion
Unknown Field for "Private Key" on SSH Key importation
Hi everyone,
I'm currently trying to automate SSH Key imports into 1Password using the CLI, specifically via the op item create --category "SSH Key" command.
I try too much versions of CLI and i always get this error :
Couldn't set the value for "private key" because unknown field types aren't supported yet.
I've checked:
Field names (privateKey, private key, etc)
Script syntax (single line, multi-line)
That the correct category is set
The CLI version is definitely 2.30.x
Is this a known bug or breaking change?
Is there a workaround for importing SSH keys automatically with CLI 2.30.x+?
Is a fix planned for upcoming releases?
This issue is quite problematic for teams that rely on automated secrets import.
Any feedback, solutions, or official updates would be greatly appreciated!
PS : I saw on several forums that version 2.12.9 is used by most developers because the mapping and import of SSH keys are functional, unlike version 2.30.x or other earlier and later versions.
Thanks in advance,
LB
2 Replies
- 1P_Phil
Moderator
Hi LorisB ,
I hope all is well, I just wanted to provide an alternative approach.
The CLI does not support creating a "new Item" with an existing SSH key.
But - the recently introduced SDKs (Python, Go or TS) should be what you need to write the SSH keys.
To learn more here is a link -
https://developer.1password.com/docs/sdks/manage-items/#ssh-key
Let me know if this helps,
Phil