SSH Connection through addon
#1
Hello Kodi,

So my goal is to have an addon with a button. And if you click it, a python script is executed that makes a ssh connection to another pi and executes a command.
(The addon is not really that, but for simplicity)
Here is my problem. My Idea was to have a python script that looks like this:

https://gist.github.com/bortzmeyer/1284249

The problem is that it ask for a ssh password. So I googled and the main answer was paramiko and others. Problem is I
cant install modules on openelec. Ive read somewhere( cant find the post) that you can import modules through os. But
if I import one modul. That modul has requirments that I need to import through os again. Which is kinda a bad solution.

Is there some addon that makes a ssh connection to something that i can study or do you people maybe have an alternative solution?

best regards

Sebastian
Reply
#2
You need to organise passwordless key based authentication. You don't need anything other then the built in ssh for that. There are many howtos found via google. Eg https://www.digitalocean.com/community/t...nux-server or https://wiki.archlinux.org/index.php/SSH_keys
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
(2016-06-24, 13:20)nickr Wrote: You need to organise passwordless key based authentication. You don't need anything other then the built in ssh for that. There are many howtos found via google. Eg https://www.digitalocean.com/community/t...nux-server or https://wiki.archlinux.org/index.php/SSH_keys

I thought it was not possible because of open elecs read only directories. I'm gonna try it tomorrow. Thanks for the suggestion.
Reply
#4
/storage is read-write, and is root's home directory.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply

Logout Mark Read Team Forum Stats Members Help
SSH Connection through addon0