Re: moodss and putty problem

From: Donal K. Fellows (donal.k.fellows_at_man.ac.uk)
Date: 10/16/03


Date: Thu, 16 Oct 2003 11:50:12 +0100

Roland Roberts wrote:
> After some probing, the problem seems to be two-fold. First, plink
> and putty don't seem to share info. While putty works find, plink
> prompts me about the server fingerprint. Answering "yes" about
> caching it makes that error go away but then I get a new problem: the
> remote side prompts me for a password. This seems to be related to
> SSH 1 vs 2. If I manually run plink this way:
>
> plink -batch -2 user@host.example.com ls -l
>
> it works. If I drop the -2, it prompts me for my password.

Sounds like you're doing protocol negotiation (perhaps that's done
differently between putty.exe and plink.exe?!) and picking up the wrong
version of the protocol (which generates its host keys differently,
forcing a failure of the host key check.) By passing -2 you're skipping
the protocol negotiation and therefore picking the host key that you
already know and trust.

There is a trick to this. :^) What you need to do is to create a
profile with putty for host.example.com (e.g. called foobar) that
specifies that you're logging in as user and that you're using version 2
of the SSH protocol. Once you've done that, you should be able to just
use plink like this:

    plink -batch foobar ls -l

I do this a lot, and it works like a charm.

Donal.



Relevant Pages

  • Re: SSH auto trust all host keys,how to?
    ... Im using putty with a SSH server, im using it in a batch file and I ... I dont want plink ... to ask to confirm changed host key just continue you its job. ...
    (comp.security.ssh)
  • Re: Putty 0.54 Bug? -- Using a Proxy server with Plink
    ... Putty 0.54, but I still had Plink 0.53b. ... Now, Dreamweaver still doesn't work, but that's a problem ... > connect over the proxy server (its firewall settings don't seem to ...
    (comp.security.ssh)
  • Re: Loggin within PLink
    ... I am using Putty to SSH onto a win2k server. ... need to run telnet and rlogin from the command prompt/DOS shell. ... is handled very well by PLink BUT is there any way to impliment ... logging just fine but not PLink. ...
    (comp.security.ssh)
  • Re: How to have PuTTY go in background only?
    ... I am using plink (I meant putty ... I use plink with all of the options (user, password, port ... forwarding info, etc) and it works fine, but, like I said, ... extra window is simply not necessary to the application. ...
    (comp.security.ssh)
  • PuTTY and ProxyCommand
    ... ProxyCommand ssh user@pc1 tcpconnect pc2 22 ... I believe PuTTY can now handle that, ... And the documentation explains the new « -nc » feature of PLink. ...
    (comp.security.ssh)