From: Rasjid W. <ra...@op...> - 2010-06-10 02:40:39
|
Ron Eggler wrote: > Hello There, > > I want to use pyssh to establish an ssh connection to a client. > I have tried following after what i've found in the docu: > > import pyssh > pyssh.run('date', host=prsIP, user='root', password=prsPass) > but this is what i'm getting: > File "./ifaceGPIO.py", line 43, in <module> > pyssh.run('date', host=prsIP, user='root', password=prsPass) > AttributeError: 'module' object has no attribute 'run' > > I did build and install pyssh from source as root... > > anyone a clue what i'm doing wrong? > > Thank you, > Ron > Hi Ron, I suggest you look at paramiko instead. http://www.lag.net/paramiko/ Paramiko is developed and maintained, whereas pyssh is not. Cheers, Rasjid. |