Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sshkey copy
# copy pub keys to the remote hosts
for host in ubuntu1 centos1 dnsmasq1;
do
ssh-copy-id -i $HOME/.ssh/id_rsa.pub ${host}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment