Hi
I want to create a scene in Vera that when run reboots my Raspberry Pi.
On Vera in Putty I have run these commands:
a) Generate SSH key
dropbearkey -t rsa -f ~/.ssh/id_dss
b) View SSH public key
dropbearkey -y -f ~/.ssh/id_dss
Which then displays me the key.
And on Vera now I can see this folder /.ssh and it contains the id_dss file.
Then on Vera in Putty again, I ran this command to copy the key over to the PI:
cat ~/.ssh/id_dss | ssh pi@192.168.1.101 'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys'
I was prompted for the Pi password and now on the Pi I can see this new folder:
/home/pi/.ssh and in there is a file called authorized_keys
However on Vera in Putty if I then run this command:
ssh pi@192.168.1.101
I am still prompted for a password, I expected for it not to prompt me for a password now.
And this is what LUA code I planned to have in my Vera scene.
os.execute("ssh pi@192.168.1.101 sudo reboot")
Any ideas why it didn’t work for the auth keys ?