Forum Discussion
Craig_T_232390
Nimbostratus
Nov 03, 2015Using Plink to run multiple commands
I have a fairly complex script which is trying to consolidate data into a text file using the following command:
c:\tools\plink.exe -batch ltmops@%IP% -pw ******* -m a.txt >tempA.txt
a port...
Kevin_Stewart
Employee
Mar 13, 2013Basic authentication is a base64-encoding of the username and password:
ex.
demoAdmin:demoAdmin = ZGVtb0FkbWluOmRlbW9BZG1pbg==
So to set this in a header, just do this:
set basicdata [b64encode "demoAdmin:demoAdmin"]
HTTP::header insert Authorization "Basic $basicdata"