Skip to content

Instantly share code, notes, and snippets.

@JordiCorbilla
Created July 30, 2016 20:12
Show Gist options
  • Save JordiCorbilla/d50e0c34412713397fbf414a06d9d0b3 to your computer and use it in GitHub Desktop.
Save JordiCorbilla/d50e0c34412713397fbf414a06d9d0b3 to your computer and use it in GitHub Desktop.
# ******************************
# These steps will allow you to configure SSH on every device
# Jordi Corbilla
# ******************************
# run this from PiController using PuTTY
cd ~
cd .ssh
scp 192.168.1.71:/home/pi/.ssh/pi01 .
cat pi01 >> authorized_keys
scp 192.168.1.73:/home/pi/.ssh/pi02 .
cat pi02 >> authorized_keys
scp 192.168.1.75:/home/pi/.ssh/pi03 .
cat pi03 >> authorized_keys
# run this from pi01 using PuTTY
cd ~
cd .ssh
scp 192.168.1.73:/home/pi/.ssh/pi02 .
cat pi02 >> authorized_keys
scp 192.168.1.75:/home/pi/.ssh/pi03 .
cat pi03 >> authorized_keys
# run this from pi02 using PuTTY
cd ~
cd .ssh
scp 192.168.1.71:/home/pi/.ssh/pi01 .
cat pi01 >> authorized_keys
scp 192.168.1.75:/home/pi/.ssh/pi03 .
cat pi03 >> authorized_keys
# run this from pi03 using PuTTY
cd ~
cd .ssh
scp 192.168.1.71:/home/pi/.ssh/pi01 .
cat pi01 >> authorized_keys
scp 192.168.1.73:/home/pi/.ssh/pi02 .
cat pi02 >> authorized_keys
# Inspect each authorized_keys file on each device and you will see the keys there for every device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment