Skip to content

Instantly share code, notes, and snippets.

@Bodge-IT
Created March 21, 2018 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bodge-IT/48871de55789f5b2e871805ad1a844af to your computer and use it in GitHub Desktop.
Save Bodge-IT/48871de55789f5b2e871805ad1a844af to your computer and use it in GitHub Desktop.
Copy SSH keys to each node
This step is optional, but it allow us to easily SSH into each node without using a password.
I'll use the ssh-copy-id command to copy my public key to the remote server.
If you don't have a key generated already, you can do so with:
ssh-keygen -t rsa
Hit enter twice and leave the passphrase empty (unless you really want to use a passphrase).
Then copy the key to each node with:
ssh-copy-id pi@docker1
You'll have to enter your password to copy the key. Do this for each node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment