Skip to content

Instantly share code, notes, and snippets.

@JordiCorbilla
Created July 30, 2016 20:08
Show Gist options
  • Save JordiCorbilla/d7758b215ef2fc38774f48ea70de554e to your computer and use it in GitHub Desktop.
Save JordiCorbilla/d7758b215ef2fc38774f48ea70de554e to your computer and use it in GitHub Desktop.
# ******************************
# 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 [email protected]
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 [email protected]
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 [email protected]
ssh-keygen
cd .ssh
cp id_rsa.pub pi03
scp 192.168.1.74:/home/pi/.ssh/PiController .
cat PiController >> authorized_keys
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment