I am having problem using pxssh module. My code is below:
try: ssh_handle = pxssh.pxssh(timeout=None) ssh_handle.logfile = sys.stdout
You can either do ssh_handle.expect(pexpect.EOF) and read the result in ssh_handle.before. Or try to remove the '\' from '(yes/no)\?' (i.e. do '(yes/no)?'). The last suggestion worked for me on Suse.
Link: http://pexpect.sourceforge.net/doc/