|
From: Mark W. A. <sl...@do...> - 2008-05-25 17:08:59
|
On Tue, May 20, 2008 at 10:39:14AM -0400, Bijoy Thomas wrote:
> Hi,
>
> Has anyone tried using pyssh on Mac OS X? I installed it and gave it
> a trial run but encountered an error for a missing "/proc" (which OS X
> doesnt have). I editied the attach_agent() method to return without
> calling fssa.fssa(key) in the hope that I could manually enter the
> passwd.
>
> My test code is
>
> from pyssh import *
> testcon = Ssh('thomas', 'mongo.cebatech.com', '22')
> testcon.set_debuglevel(1)
> testcon.set_sshpath(SSH_PATH)
> testcon.login()
> print testcon.sendcmd('date')
> testcon.close()
[snip]
> Am I doing something wrong or is this something to do with OS X? The
> README mentions that time.sleep() has issues. Perhaps something to do
> with that?
Yes and no. AFAIK, no one has tried PySSH on OS X but the fssa module definitly
depends on /proc for finding and attaching to a running agent.
If you're content to have your password embedded in scripts, the login method
accepts a password arguement so:
testcon.login(password="mypassword")
should do what you need.
mwa
--
Mark W. Alexander
sl...@do...
The contents of this message authored by Mark W. Alexander are released under
the Creative Commons Attribution-NonCommercial license. Copyright of quoted
materials, if any, are retained by the original author(s).
http://creativecommons.org/licenses/by-nc/2.0/
|