I'm trying to find a way to execute commands with python
over ssh
. I did find this answer, however I'm working on an embedded platform and can't install new packages. In other words I can't install paramiko
. Is there a way to do what paramiko
does but with standard packages?
Asked
Active
Viewed 35 times
0
-
I would love to see an answer for this :) – Coolq B Apr 29 '17 at 00:06
1 Answers
0
Is it a Unix based system with an ssh client? If so, could you use subprocess, https://docs.python.org/3/library/subprocess.html, to spawn another process and run ssh commands?
If not, have you tried to see if you can package paramiko itself with your code and deploy everything together to the target system? I'm not sure if this works, but it may be worth a shot.

MD6380
- 1,007
- 4
- 13
- 26
-
I need the code to be OS neutral. Part of the reason is that testing will be done on a `Windows` machine but the final code will run on a `Linux` based system. – flashburn Apr 29 '17 at 00:20
-
@flashburn Unfortunately that makes it more difficult as you're going to need an ssh client that works on both platforms, which I haven't seen before. Often time the packages for a client, library, program, etc, are built per platform. – MD6380 Apr 29 '17 at 00:44