C:\>plink myhost
Unable to open connection:
Host does not exist
C:\>
I can ping the host just fine and SSH to it with PuTTY:
C:\>ping myhost
Pinging myhost.mydom.dom [10.10.2.18] with 32 bytes of data:
Reply from 10.10.2.18: bytes=32 time<1ms TTL=254
Reply from 10.10.2.18: bytes=32 time<1ms TTL=254
Reply from 10.10.2.18: bytes=32 time<1ms TTL=254
Reply from 10.10.2.18: bytes=32 time<1ms TTL=254
Ping statistics for 10.10.2.18:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\>
Any ideas why this me happening?
Thanks,
Mark
My first thought here is to ask if you've got a PuTTY saved session
with the name 'myhost'. If so, Plink will use that in preference to
interpreting 'myhost' as a host name, and if the saved session
contains inaccurate information that could easily cause a problem.
Try adding '-v' to Plink's command line, to see where it's really
trying to connect to.
--
Simon Tatham "I thought I'd put my foot so far into my mouth I
<ana...@pobox.com> wouldn't be able to sit down without standing up."
No idea yet. You obviously have connectivity. That means that the
problem may be DNS-related, or something else interesting.
What happens when you use the fully qualified name:
plink myhost.mydom.dom
?
What happens when you try the IP address:
plink 10.10.2.18
?
Can you see anything interesting in a wireshark or tcpdump packet trace
of traffic to/from that laptop during the failed attempt?
--
Mike Andrews, W5EGO
mi...@mikea.ath.cx
Tired old sysadmin
I don't have any profiles defined (too many hosts).
Some sort of DNS weirdness?
C:\>plink -v myhost
Looking up host ".mydom.com"
Unable to open connection:
Host does not exist
C:\>plink -v myhost.mydom.com
Looking up host ".mydom.com"
A correspondent to the PuTTY mailing list has pointed out a behaviour
that may explain your problem.
Do you have a host name stored in "Default Settings"? (I.e., if you
launch PuTTY and don't touch anything, is ".mydom.com" in the
"Host Name" box?)
This became possible in 0.60 (by popular demand), and PuTTY copes
gracefully with it, but it turns out Plink does not. If this is your
problem, it's probably treating "myhost" as part of the remote command
rather than a hostname (but this isn't evident as it's not getting far
enough for the remote command to be relevant).
A fix for Plink's misbehaviour in this circumstance has been checked
in, so tomorrow's development snapshot should behave better (r8651 or
later).