piBeacon: 12- setup auth keys on RPI

Posted on
Sat Jun 02, 2018 7:10 pm
kw123 offline
User avatar
Posts: 5454
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: 12- setup auth keys on RPI

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests