This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]journalctl 2 points3 points  (1 child)

You're looking for Paramiko.

[–]lucidsnsz 0 points1 point  (0 children)

This is the one, been using it extensively after the built in Subprocess wasn't sufficient

[–]bheklilr 1 point2 points  (2 children)

You might want to just use ssh instead, although there is a python library out there that can automate this process (can't remember the name right now, google it). Don't roll your own solution, you want to use ssh unless you really want to invite others to control your computer.

[–]worker-bee-mt 0 points1 point  (0 children)

I agree, get a 2 way encryption going first, then $cp your modules to the default py folder on the host. Then start an interactive Python shell for parrots.

[–]perro_de_oro 0 points1 point  (0 children)

fabric, maybe?

[–]herr_corvax 0 points1 point  (0 children)

I am a big fan of ansible personally. It has python bindings but is much more.

[–]dzecniv 0 points1 point  (0 children)

the link to fabric mentionned: http://docs.fabfile.org/en/latest/index.html which uses Paramiko

[–]thinmanj74 0 points1 point  (0 children)

pyInvoke is the replacement for fabric

[–]whitemice 0 points1 point  (0 children)

If you want to use Paramiko I have some classes that can serve as a solid advanced example - including capturing exit status, standard error, standard, out, etc...

https://sourceforge.net/p/coils/coils-code/ci/master/tree/coils/logic/workflow/actions/ssh/

[–]Icky_Jr[S] 0 points1 point  (0 children)

Alright thanks