
10-03-2007, 04:17 AM
|
| Junior Member | | Join Date: Sep 2009
Posts: 0
| |
Re: PuTTY and ProxyCommand Iulius wrote:
> But why
> plink -pw password user@pc1 -nc %host:%port
> doesn't work?
Because, it looks like, your server isn't sending anything that
Plink can recognise as a password request. Instead of selecting the
"password" authentication method, in response to which Plink could
send the thing you specified with -pw, it's selecting
"keyboard-interactive". In this mode it sends a sequence of some
number of user-readable prompts and expects responses.
Using this mode for a password login seems quite common nowadays,
but it does have the side effect that -pw is less useful, because
Plink can't reliably tell (without being able to read natural
language) that the prompt is a password prompt rather than a prompt
for an S/Key one-time password or some other kind of interactive
authentication.
> And by the way, isn't it possible for PuTTY to display the interactive
> authentication?
No, because it would have to somehow open two separate I/O channels
to Plink, one for the actual session data and one for the
authentication, and there's no useful method for doing that. OpenSSH
gets away with this because the terminal device it's using is
external to _both_ programs.
> plink -i key.ppk user@pc1 -nc %host:%port
> but the option doesn't seem to be recognized, like « -pw ».
That isn't enough information to find out what's going on,
unfortunately. You'd need to use `plink -v' and look at the Event
Log. Does this mode work when run on its own?
--
Simon Tatham What do we want? ROT13! When do we want it? ABJ! |