Friday, March 8, 2019

How to copy a ssh key to all couple nodes Using for loop.

How to copy ssh keys to all couple nodes Using for loop.


ssh-keygen 


# for host in sukhoi.test.com \ 
sukhoi1.test.com \
sukhoi2.test.com; \
do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \ done

No comments:

Post a Comment