Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The only way the following command will work for me, is when putty's saved default connection does not define a host parameter.

 plink -l user -pw password myhost command

The result is:

myhost: Command not found.

Instead, what I need to type is:

plink -l user -pw password command

And the host is taken from putty's default connection.

Is the a way to work around this? I want both the default connection in putty, but I also want the ability to specify my own host for plink.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I had this same problem, and this works for me:

plink -load null host -l user -pw password 

Where "null" is a non-existent session.

share|improve this answer

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.