I was able to use dropbearkey for automate reboot my linux box from vera secure. After installing last firmware (VeraPlus 1.7.4955) I cannot use dropbearkey, actually I can not create dropbear key. Is there anybody else have that issue? I always get the same return
root@MiOS:~# dropbearkey -t rsa -f ~/.ssh/id_rsa
Generating 2048 bit rsa key, this may take a while...
Couldn't create new file /root/.ssh/id_rsa.tmp10188: No such file or directory
Exited: Failed to generate key.
Did the new firmware delete my old settings? If yes, can you help me for creating /root/.ssh and set permissions ? I do not want to do it by myself without an expert guidance
I already have a key and have working ssh connection before new firmware install. After new firmware I see that my vera does not send os.execute(" ssh -y -i ~/.ssh/id_rsa xubu@192.168.1.7 sudo /sbin/poweroff" ) and decide to see if dropbearkey exist.
I’ve not updated to the new release firmware yet. But it sounds like this issue is gonna break my integration with my Asus Merlin router to control my VPN connection on / off via Vera.
Thanks to you again my linux HERO, you solve again one of my issue. But need to know something for my improvement.
Before os.execute(" ssh -y -i ~/.ssh/id_rsa xubu@192.168.4.61 sudo /sbin/poweroff" ) script shut down computer but now it does not works but os.execute(" ssh -y -i ~/root/.ssh/id_rsa xubu@192.168.4.61 sudo /sbin/poweroff" ) works. Why?
You created the .ssh folder in the root user home directory… if you moved it to the xubu home directory, then your “silent ssh” session should work. However, you may need to recreate keys with the xubu user.
But is you are logged in as root (the default for Vera)
~/.ssh = /root/.ssh
~ basically is short hand for ‘My user’s home directory’ for user root ~ is /root
If it was me I would probably specify /root/.ssh not ~/.ssh to avoid just this kind of scenario where you’re not quite sure where your folders are. It’s also why I asked you to run pwd (print working directory) to check which folder you were in
Hi… I flashed the 19.07.0 image. Still no SSH. Then I restored my backup config that I took immediately after upgrading and configuring 19.07.0. This step has restored SSH connectivity. My wife is currently trying to get some work done so I have to postpone my next upgrade attempts for a while.
Best Home Automation shopping experience. Shop at Ezlo!