0

I'm using a batch file which contains the following information:

plink.exe -ssh [email protected] -pw intec -m t.txt

m.txt contains user and password example:

su
intec

Result:

 C:\Plink>plink.exe -ssh [email protected] -pw intec -m t.txt
 Password:_

The problem is that the cursor is waiting for the password. How do I send the password to pass this step?

1
  • Welcome to stackoverflow. just a guess, have you tried to add a new line in the txt? Commented Sep 17, 2015 at 19:36

1 Answer 1

1

If you want to pass the password, I believe it needs to use the -pw option followed by the actual password, not a filename.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.