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 agossh user@host "echo $(ssh-add -L | grep "$KEY_ID\$") >> ~/.ssh/authorized_keys"
This only works if an authorized_keys file exists already. So you might have to create it first:
Create the .ssh directory:
mkdir ~/.ssh
Set the right permissions:
chmod 700 ~/.ssh
Create the authorized_keys file:
touch ~/.ssh/authorized_keys
Set the right permissions:
chmod 600 ~/.ssh/authorized_keys
From here: https://askubuntu.com/a/466558