Prompt Variable
Posted: Fri Feb 05, 2021 7:32 am
Dont know if I'm just being complete idiot but cannot get prompt variable to work for me
I'm using TypeItIn to insert my user credentials into securecrt sessions
For telnet session its not a problem as telnet prompts you for username and password, so I just telnet to a device and use typeitin to insert credentials.
Problem is for for SSH session you need to specify the username to use before conencting to remote device, eg ssh myusername@remotehotehost
I am trying to get typeitin to prompt me for the remote host name, which I managed to get working with ssh myusername@{Var=?Prompt}
problem is that even though the prompt pops us and I can insert the name of the remote host, the info never gets pasted into the securecrt session after clicking ok, the script just tries to carry on with the {Enter}mypassword{Enter} so obviously its not working as remote host is never specified
I'm using TypeItIn to insert my user credentials into securecrt sessions
For telnet session its not a problem as telnet prompts you for username and password, so I just telnet to a device and use typeitin to insert credentials.
Problem is for for SSH session you need to specify the username to use before conencting to remote device, eg ssh myusername@remotehotehost
I am trying to get typeitin to prompt me for the remote host name, which I managed to get working with ssh myusername@{Var=?Prompt}
problem is that even though the prompt pops us and I can insert the name of the remote host, the info never gets pasted into the securecrt session after clicking ok, the script just tries to carry on with the {Enter}mypassword{Enter} so obviously its not working as remote host is never specified