Re: PuTTY and ProxyCommand



Iulius <iulius@xxxxxxxxxxxxxxxxxxxxxxxxxxx> 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!
<anakin@xxxxxxxxx> When do we want it? ABJ!
.



Relevant Pages

  • Re: Windows, Net::SSH: how do I use a private key (w / passw
    ... authentication and then prompt for the key's password. ... documentation it says it will automatically look for a key in certain ... you're using to log into the server. ... AFAIK, it relly on plink, plink accepts provide a private key file (- ...
    (comp.lang.ruby)
  • plink without any parameters is not displaying version and help information
    ... I'm trying to assist a user who is having problems with plink on ... passed to it and instead responded with a "login as:" prompt. ... Tried plink me@host since I know I can login to host. ... We were running PuTTY 0.58. ...
    (comp.security.ssh)
  • Re: redicting standard output
    ... I did some work with plink and redirecting its input/output. ... I intercepted its "please enter your password" prompt). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Putty command line tool reveals password
    ... > When I log on to a box using plink (Putty command line) to telnet/ssh to it, ... > my password is displayed on the prompt when I type it in. ... What version of Plink, running on what version of Windows? ...
    (comp.security.ssh)
  • plink fails when started from emacs, succeeds otherwise
    ... I'm attempting to use plink (9/17 development build, ... happens with other versions) to create an ssh connection, ... public key authentication. ...
    (comp.security.ssh)