diff options
author | Tar Committer <tar@ocjtech.us> | 2001-10-16 03:14:40 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2001-10-16 03:14:40 +0000 |
commit | b0d71377c1854271b4511488422427f73d9473d1 (patch) | |
tree | 4f4efba2179225c53238aa53e933ba81100cad81 /bin/jlogin.in | |
parent | 10cc9157892d7902dddde70a5b9b2046d0c376ea (diff) | |
download | rancid-b0d71377c1854271b4511488422427f73d9473d1.tar.gz rancid-b0d71377c1854271b4511488422427f73d9473d1.tar.xz rancid-b0d71377c1854271b4511488422427f73d9473d1.zip |
Imported from rancid-2.2b8.tar.gz.rancid-2.2b8
Diffstat (limited to 'bin/jlogin.in')
-rwxr-xr-x | bin/jlogin.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/jlogin.in b/bin/jlogin.in index ee49d31..6081365 100755 --- a/bin/jlogin.in +++ b/bin/jlogin.in @@ -333,6 +333,7 @@ proc login { router user passwd cmethod cyphertype identfile} { } -re "Enter passphrase for RSA key '\[^'\]*': " { send_user "\nKey has passphrase!\n" + sleep 1 send "$passphrase\r" exp_continue } -re "(Host key not found |The authenticity of host .* be established).*\(yes\/no\)\?" { @@ -347,12 +348,12 @@ proc login { router user passwd cmethod cyphertype identfile} { expect { eof { send_user "\nError: Couldn't login\n"; wait; return 1 } - -re "\[Pp]assword:" { send "$passwd\r" } + -re "\[Pp]assword:" { sleep 1; send "$passwd\r" } -re "$prompt" { break; } } exp_continue } - "\[Pp]assword:" { send "$passwd\r" + "\[Pp]assword:" { sleep 1; send "$passwd\r" expect { eof { send_user "\nError: Couldn't login\n"; wait; return 1 } -re "$prompt" { break; } |