Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In Windows 2003 when i run plink without arguments, it says "unable to open connection: host does not exist"

(And of course when it is run with arguments)

What can be the cause? I am becoming crazy

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

If you have a hostname or IP Address defined in the default settings for putty then plink will try and connect to that address and use the default settings. If there is no hostname or IP address defined then plink will use the command line.

share|improve this answer
add comment

I solved by deleting HKEY_CURRENT_USER\Software\SimonTatham

(by doing plink -v i saw it was connecting to a dummy server... strange - i never used putty/plink on this server, maybe it is a leftover by another program)

share|improve this answer
    
Wow, thank you very much, that answer just solved my problem. The -v switch showed me that even though I was asking plink to connect to 10.0.0.2, it was actually connecting to 192.168.1.1, an IP adress that I'd set up and was using in putty.. Deleting the registry entries allowed me to connect to the proper server, and now everything's working fine! –  user77406 Apr 6 '11 at 17:05
add comment

To add to the previous comment... I found that using putty to authenticate a session on the machine in question creates the sshHostKeys registrations in the registry and plink can then use that for it's authenticating. This works quite well and a simple statement like:

plink -ssh my.hostname.com

will automatically get you to a user prompt on the host machine. No fuss! worked for me!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.