# ******************************
# These steps will allow you to configure SSH on every device
# Run the commands below from PiController device
# Jordi Corbilla
# ******************************

# PiController (192.168.1.74)
ssh-keygen
cd ~
cd .ssh
cp id_rsa.pub PiController

# pi01 (192.168.1.71)

ssh pi@192.168.1.71
ssh-keygen
cd .ssh
cp id_rsa.pub pi01
scp 192.168.1.74:/home/pi/.ssh/PiController .
cat PiController >> authorized_keys
exit

# pi02 192.168.1.73

ssh pi@192.168.1.73
ssh-keygen
cd .ssh
cp id_rsa.pub pi02
scp 192.168.1.74:/home/pi/.ssh/PiController .
cat PiController >> authorized_keys
exit

# pi03 192.168.1.75

ssh pi@192.168.1.75
ssh-keygen
cd .ssh
cp id_rsa.pub pi03
scp 192.168.1.74:/home/pi/.ssh/PiController .
cat PiController >> authorized_keys
exit