Re: moodss and putty problem
From: Donal K. Fellows (donal.k.fellows_at_man.ac.uk)
Date: 10/16/03
- Next message: Jean-Claude Wippler: "Re: Metakit problems (perhaps) - Has anybody seen this or similar?"
- Previous message: Mel: "Getting a file from a server..."
- In reply to: Roland Roberts: "moodss and putty problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Jean-Claude Wippler: "Re: Metakit problems (perhaps) - Has anybody seen this or similar?"
- Previous message: Mel: "Getting a file from a server..."
- In reply to: Roland Roberts: "moodss and putty problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|