Created
May 22, 2019 16:51
-
-
Save simbalinux/8436479a2be586ed53873214cd78ab31 to your computer and use it in GitHub Desktop.
sshkey copy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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