Created
July 30, 2016 20:08
-
-
Save JordiCorbilla/d7758b215ef2fc38774f48ea70de554e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ****************************** | |
# 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