Solaris and Linux
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment