Skip to content

Instantly share code, notes, and snippets.

@MooxxNew
Created November 3, 2015 05:45
Show Gist options
  • Select an option

  • Save MooxxNew/78469cd367f2d7c8324c to your computer and use it in GitHub Desktop.

Select an option

Save MooxxNew/78469cd367f2d7c8324c to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in $(seq 30 60); do
echo "yes \n" | sshpass -p "password" ssh-copy-id -i /home/ubuntu/.ssh/id_rsa.pub node-"$i"
done
@MooxxNew
Copy link
Author

#!/bin/sh
for i in $(seq 117 120); 
do
    `sshpass -p "password" ssh-copy-id -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' [email protected]."$i"`
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment