]> thyrsus.com Git - ssh-installkeys.git/commitdiff
We can handle a passworded connection now.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 22 Nov 2002 22:12:43 +0000 (22:12 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 22 Nov 2002 22:12:43 +0000 (22:12 +0000)
ssh-installkeys

index f07cac8d96dc1dc9634f4e1c487410d503acb78d..1a4470a9131083fb53f0afc60c048263a8c0f41c 100755 (executable)
@@ -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