In documentation can be found information that pseudo TTY on Solaris platform is not working very well.
I had tried to use pxssh module on Solaris and had this problem too.
TTY couldn't be found, so I had a message:
ssh_askpass: exec(/opt/csw/libexec/ssh-askpass): No such file or directory
After some debug I found a bug in Solaris platform recognition. In file pexpect.py there is a line which distinguish between __fork_pty() and pty.fork(). Its base is value of sys.platform, in my case (system details below) this value is not 'solaris' but 'sunos5'.
After this change, module works very well:
self.use_native_pty_fork = (not (sys.platform.lower().find('solaris') >= 0)) and (not (sys.platform.lower().find('sunos') >= 0))
Python 2.4.2 (#1, Mar 20 2006, 11:47:26)
>>> import sys
>>> print sys.platform
SunOS 5.9, the same effect is on SunOS 5.6
Log in to post a comment.