From: Eric S. Raymond Date: Fri, 22 Nov 2002 22:12:43 +0000 (+0000) Subject: We can handle a passworded connection now. X-Git-Tag: 1-1~10 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e9bcb36c814ae437e2d66f0322443fd1f80ee2b2;p=ssh-installkeys.git We can handle a passworded connection now. --- diff --git a/ssh-installkeys b/ssh-installkeys index f07cac8..1a4470a 100755 --- a/ssh-installkeys +++ b/ssh-installkeys @@ -46,8 +46,8 @@ License: Python Software Foundation License Noah Spurrier -$Revision: 1.5 $ -$Date: 2002/11/22 11:35:37 $ +$Revision: 1.6 $ +$Date: 2002/11/22 11:40:46 $ """ import os, sys import select @@ -68,7 +68,7 @@ A critical module was not found. Probably this OS does not support it. Currently pexpect is intended for UNIX operating systems (including OS-X).""" __version__ = '0.94' -__revision__ = '$Revision: 1.5 $' +__revision__ = '$Revision: 1.6 $' __all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn', '__version__', '__revision__'] @@ -708,6 +708,7 @@ class ssh_session: if not self.password: self.password = getpass.getpass('Remote password: ') child.sendline(self.password) + seen = child.expect(EOF) if self.verbose: print "<- " + child.before return child.before