Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Secure Shell

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2015, 12:23 PM
nikhil80 nikhil80 is offline
Registered User
 
Join Date: Mar 2015
Posts: 1
Automate login for enable password on Cisco devices

Hello People,

I'm new to SecureCRT and was wondering if someone can help me automate the login process to my Cisco devices.

I'm able to get the username/password entered automatically however I'm unable to get past the 'enable' mode command on the Cisco device automatically.

I tried to send the 'enable' command but it just sits there and I have to hit enter to get to the enable password prompt, enter the password and then I'm good to go.

I would appreciate if someone could let me know how to automate the enable password process so that I don't have to enter that everytime I connect using SSH on SecureCRT.

Thank you in advance!
Reply With Quote
  #2  
Old 03-25-2015, 12:52 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi nikhil80,

Thanks for the post. It sounds like you already have the username and password saved in the session. If this is correct, then you can enable Automate logon in the Connection / Logon Actions category of the Session Options dialog. After the option is enabled, disable the option named Send initial carriage return, and modify the Expect/Send sequence to meet your needs.

Does this help you accomplish your goal?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 08-27-2018, 05:48 PM
thrtnastrx thrtnastrx is offline
Registered User
 
Join Date: Apr 2018
Posts: 1
1. Logon actions
2. Enable "automate logon"
3. Disable "send initial carriage return"
4. Delete any pre-built items
5. Add
5. Expect: [do not put anything here]
6. Send: enable
7. OK
8. Add
9. Expect: Password:
10. Send: [enter enable password here]

this worked on a Cisco ASA
Reply With Quote
  #4  
Old 08-28-2018, 07:59 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,322
Hi thrtnastrx,

I am going to need a little more info about the interaction in the terminal window.

What does happen with this configuration? (ie: Enable never gets sent?)

Is Display logon prompts in terminal window enabled in the Connection / Logon Actions category?

What is in the terminal window?

If you have saved your primary authentication elsewhere in the session (Connection / SSH2 category), then I would expect you are at some kind of prompt. That should be what is used for the "Expect" field.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:12 AM.