Sunday, August 18, 2013

How to connect to a server via Python script and execute a command such as "cd / && ls"

How to connect to a server via Python script and execute a command such as
"cd / && ls"

I need a python script that will connect to a server
via ssh or something ( however python works )
and then execute a command such as
cd / && ls
and print the output.

No comments:

Post a Comment