Skip to content Skip to sidebar Skip to footer

Using Plink (putty) To Ssh Through Python

I am trying to write a python script that will SSH to a server and execute a command. I am using Python 2.6 on Windows, and have installed plink and paegent (for ssh keys) and adde

Solution 1:

In the second approach, use

ff.communicate("open vnc://www.example.com\n")

Solution 2:

I use fabric for automation of runnning commands via SSH on a remote PC.

Solution 3:

I'd try :

Popen("plink user@host -i key.ppk", shell=True)
Popen("open vnc://www.example.com", shell=True)

Post a Comment for "Using Plink (putty) To Ssh Through Python"