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
Lachy
4 years agoOccasional Contributor
ssh-copy-id functionality
Without the private key files in ~/.ssh/ , it's less convenient to use ssh-copy-id to put public keys onto servers. It would be useful if 1Password provided an easy solution for this, perhaps UI b...
Former Member
3 years agoUnfortunately there's not a way to specify a key except by filename with ssh-copy-id
. Since the keys in 1Password are ID'd by name in the comment section, you can list the public keys with ssh-add -L
, grep one by ID, and copy that:
ssh user@host "echo $(ssh-add -L | grep "$KEY_ID\$") >> ~/.ssh/authorized_keys"
where $KEY_ID is the name of the SSH key in 1Password.