Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save simbalinux/8436479a2be586ed53873214cd78ab31 to your computer and use it in GitHub Desktop.
Save simbalinux/8436479a2be586ed53873214cd78ab31 to your computer and use it in GitHub Desktop.
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