piBeacon: 12- setup auth keys on RPI

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

piBeacon: 12- setup auth keys on RPI

Post by kw123 »

if you don't want to enter password during ssh login in to your RPIs do the following on your MAC:

generate keys:

Code: Select all

ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa
then for each RPI send the keys:
either (OS X 10.12 )

Code: Select all

ssh-copy-id pi@ip-number
or (OSX 10.11 and older)

Code: Select all

cat ~/.ssh/id_rsa.pub | ssh pi@ipnumber "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Then you don't have to enter password when doing ssh or sftp to your RPI

AND in piBeacon " initial BASIC setup ..." set in field "normal login or authkey .." select "uses authkey...."

available in piBeacon version >= 7.85.x

Karl

Return to “piBeacon”