Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-14-2020, 06:31 PM
CiscoKid08 CiscoKid08 is offline
Registered User
 
Join Date: Jun 2020
Posts: 1
Unhappy Successive SSH Sessions from Console

Hello,

I'm using SecureCRT to execute a number show commands against a series of Cisco switches.

For some network segments, we need to SSH to a specific switch (to use as a jumphost) to gain access to compartmentalized network segments.

So I'll start the session by SSHing to Switch1 then from there SSH to Switch2. From Switch2, I'll SSH to all of the child switches and run my show commands.

Using SecureCRT, I can do this manually pretty easily. For example, once I'm on Switch2, I can run the following:

Code:
ssh -l admin 10.0.0.1
password
terminal length 0
show run
show logging
exit

ssh -l admin 10.0.0.2
password
terminal length 0
show run
show logging
exit

ssh -l admin 10.0.0.3
password
terminal length 0
show run
show logging
exit
Entering these commands line by line works perfectly and I'm able to capture all the output needed. However when I attempt to enter these all in one batch (using copy-paste), it seems I get through to the first switch but the "exit" command will prevent SecureCRT from entering in any of the subsequent lines to initiate additional SSH sessions. I would have assumed that a copy-paste of the above is all that's needed to hit all three switches but that appears to not be the case. Is there something I'm missing? The "exit" command will successfully quit the first SSH session (.1 in the example) but no SSH connections are initiated to .2 or .3.

Does anyone have any suggestion or feedback on this? It seems I've overlooked something.
Reply With Quote
 

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 08:50 PM.