Hi,
I'm trying to configure WinSCP via Session Tools since I don't want to create 2 sessions for a computer (SSH + SCP).
For now, it doesnt work since I guess that the ^$PASSWORD$ variable is not replaced by its value.
Check out this example (sorry I can't upload pictures) in RDM 6.5.0.0 (Entreprise Trial) :
File test.cmd :
----------------
echo "Arg 1" %1
echo "Arg 2" %2
pause
Session Script tool :
-----------------------
Command line, Run : " "D:\test.cmd" $PASSWORD$ $HOST$ "
Result :
---------
D:\>echo "Arg 1" $PASSWORD$
"Arg 1" $PASSWORD$
D:\>echo "Arg 2" xdir-lutece03-r7
"Arg 2" xdir-lutece03-r7
D:\>pause
Is it a known issue ?
For security reason with don't allow (except with the command line session) to extract the password. We have a small workaround for that. You can use the custom field in the Information tab page and set the password. The variable would be $CUSTOM_FIELD1$
David Hervieux
Thank you for your answer. I thought of using this workaround but I wanted to know if this behaviour is wanted.
So, we can't at all use the $PASSWORD$ variable in Session Script Tools ?
I'm failing to see the "security reason" if I want to use the password in command line and I am forced to used it clearly written in a custom field.
Hi,
There is a small checkbox to hide the password in the custom field. I could add an option to allow the password in the variable. The would be disabled by default.
David Hervieux
It would be delightful :).
I come from mRemoteNG and this is the only feature I miss. I'm switching to RDM to use the client/server feature in my whole company.
Hi,
Could you try this version?
http://remotedesktopmanager.com/download/Setup.RemoteDesktopManager.6.5.1.0.exe
David Hervieux
Thank you for your quick update !!
I don't see the option to allow the password variable. Where is it located ?
Hi,
It's in the session properties and in the Advanced tap page.
David Hervieux
Hi,
Thanks, it works like a charm !
But it is not available in batch processing, can you add it too :) ?
edited by DeLoVaN on 9/28/2011
Good idea! I will add this for the next update
David Hervieux