[plug] ssh passwords
William Kenworthy
billk at iinet.net.au
Sun May 8 13:12:52 WST 2005
Yes, it does work - got a prompt, however, I couldnt execute a command
(hung). This used to work some time back so somethings changed. It
could probably be worked around somehow though.
BillK
On Sun, 2005-05-08 at 08:54 +0800, Craig Ringer wrote:
> On Sun, 2005-05-08 at 07:22 +1000, Onno Benschop wrote:
...
> Unfortunately it doesn't seem like ssh uses ssh-askpass when requesting
> a login password, only a key passphrase - otherwise that might have been
> worth exploring. I'm surprised William Kenworthy's suggestion works,
> actaully, as ssh is normally really paranoid about grabbing the terminal
> when reading the password.
>
set timeout -1
spawn $env(SHELL)
match_max 100000
send -- "ssh mortal\r"
expect "word: "
send -- "my secretpassword\r"
expect eof
On Sun, 2005-05-08 at 08:54 +0800, Craig Ringer wrote:
> On Sun, 2005-05-08 at 07:22 +1000, Onno Benschop wrote:
...
> Unfortunately it doesn't seem like ssh uses ssh-askpass when requesting
> a login password, only a key passphrase - otherwise that might have been
> worth exploring. I'm surprised William Kenworthy's suggestion works,
> actaully, as ssh is normally really paranoid about grabbing the terminal
> when reading the password.
>
More information about the plug
mailing list