Solved vbscript plink help ssh key

April 13, 2015 at 13:47:43
Specs: windows 2003
0
down vote
favorite

I have the following line it does not appear to be processing the exit portion

strSSHCmd1 = "cmd.exe /c " & chr(34) & "echo N | C:\apps\GatherEPS\plink.exe -l $user -pw $pass " & Trim(adoRS("EPSIPAddress")) & " exit " & chr(34)

I know it is better to import the keys but due to company requirements that's not an option.

Thanks for any help you can provide


See More: vbscript plink help ssh key

Report •

#1
April 15, 2015 at 14:50:18
✔ Best Answer
Not sure what you're looking to do, but unless you're trying to connect to a server with the username $user that has the password $pass, you're probably not getting the desired results.

I have the following line it does not appear to be processing the exit portion
What are you getting? It's also good to look at the final results of strSSHCmd1, to see if it matches what you're expecting.

cmd.exe /c "echo N | C:\apps\GatherEPS\plink.exe -l $user -pw $pass 127.0.0.1 exit "

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question