|
#1
|
|||
|
|||
vbscript - crt.session.connect on securecrt 7.0.3
Hi all,
I've run into a strange problem on one of the most basic functions. Previously had securecrt version 6.7.5, and a vbscript connecting to network devices (using SSH2) to grab 'show' commands. Below is how i use the vbscript connect function crt.session.connect "/SSH2 /L " & user & " /PASSWORD " & passwd & " /C 3DES /M MD5 " & ip & " /AcceptHostKeys" This WAS working ok. Now recently, admin in our company has upgraded/patched the securecrt software to 7.0.3. Now when my script runs, i get a 'logon popup' dialogue box - prefilled with the username supplied by the script, but the password field empty . This effectively breaks/halts my script from proceeding. Are there any workarounds or securecrt settings adjustments to get rid of this popup box? As noted, my script was previously working when i had securecrt 6.7.5. I have not modified my script. Thanks in advance, Chris |
#2
|
|||
|
|||
Hi Chris,
Thanks for the question. I am able to use your line of code from within SecureCRT 7.0.3 without issue even though the syntax is not correct. My guess is that something in addition to SecureCRT has changed. Here is the correct syntax: Code:
crt.session.connect "/SSH2 /L " & user & " /PASSWORD " & passwd & " /C 3DES /M MD5 /AcceptHostKeys " & ip To enable trace options output, click on the File pull down menu and select Trace Options. If you click the File pull down menu again you should see a check mark next to Trace Options, indicating that trace options output is now enabled. With Trace Options enabled, you will notice debugging information displayed in the terminal window that isn't normally there by default when SecureCRT is attempting to establish a connection, and at certain times throughout the lifetime of the connection. Once you are successfully connected, you can use the Select All and Copy options from within the Edit menu to transfer the information to the Windows clipboard, and then paste this information into a text editor and save the data as a file. |
#3
|
|||
|
|||
Hi All,
This issue was a result of an administrative policy that disabled saving of passwords which also prevented the command-line from working. We have a new build of SecureCRT that addresses this issue. If you would like to test it, please send a message to support@vandyke.com with a subject of Attn: Todd - forum thread 10861. This fix should also be available in SecureCRT 7.1b2 and newer. |
![]() |
Tags |
securecrt , vbscript |
Thread Tools | |
Display Modes | Rate This Thread |
|
|