windows - Use plink.exe with space in password -


scenario: use plink.exe script pdu using cli. manual use of plink.exe works. scripting plink not work.

problem: when try script doesn't work because enter cli mode of destination device have append " -c" @ end of password.

if run command:

    plink.exe -ssh -m c:\scripts\apc.txt -l admin -pw password -c 192.168.1.10 

plink confused presence of -c switch. i've tried putting in quotes, double quotes. nothing seems work.

note. running command works (but defeats whole point of scripting since have manually type in password:

    plink.exe -ssh -m c:\scripts\apc.txt -l admin 192.168.1.10     password -c 

environment: windows server connecting pdu

question: how can send password plink without thinking " -c" part of password invalid switch?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -