2016-06-24, 13:01
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
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