Thursday, March 18, 2010

IOS: Reverse SSH Console Access — Part 2

June 25, 2008 by Greg Ferro · 3 Comments 

This Post is Part of a Series — click for list on Console Mastery»

Accessing the line port using SSH only.

The advant­age to this option is that you need only allow TCP 22 (SSH) through your firewall.

From a *nix plat­form, you use the fol­low­ing com­mand line:

ssh gf:39@10.216.4.10

When using putty in inter­act­ive mode, at the user­name prompt just put username:number at the prompt.

Putty Profile

If you con­fig­ure putty pro­files (which I use to run putty from the com­mand line).

putty ssh selecta.jpg

Connecting from the IOS prompt on your ter­minal server

Accessing a port on your ter­minal server using the IOS com­mand line, where 40 is the line num­ber of the serial port that you want con­nect to.

lontrm01#ssh –l gf:40 10.216.4.10

{Thanks to Emanuele who pos­ted a com­ment on the ori­ginal post}

HELP: How do you enter Break Characters to enter ROMMON ?

I have not been able to suc­cess­fully enter a break char­ac­ter /​ sequence to break into the boot sequence when using Reverse SSH. From my research, it seems that the break char­ac­ters when using SSH are dif­fer­ent from those using telnet.

I am sure that there is an answer — please leave a com­ment if you have any tips.

List of Standard Break Keys

Please rate this post:

  Why Rate Posts?
1 Star - It\\\'s Crud2 Stars - It\\\'s Tosh3 Stars - Something\\\'s missing4 Stars - Needs works5 Stars - Good Enough6 Stars - Good7 Stars - Excellent8 Stars - Brilliant9 Stars - Astonishing10 Stars - Awesomely Godlike? (No Ratings Yet)
Loading ... Loading ...

Comments

3 Responses to “IOS: Reverse SSH Console Access — Part 2”
  1. Emanuele says:

    Hi Greg,
    I think there is no stand­ard key. On openssh using ~B you ask to remote server to send a BREAK to remote server. But I’m not sure SSHv2 on cisco imple­ment this. I’ve noth­ing con­nec­ted to the only reverse SSH box I have, so I can’t test.. :)
    And I see no tel­net break-​​on-​​ip or ip-​​on-​​break for ssh.. :-/

    • Greg Ferro says:

      I tried ~B on OSX Terminal but it didn’t work. I also activ­ated the ‘tel­net –on-​​break’ but it didn’t work either. The only way I got it to work was to remove the line from the rotary group, tel­net (not SSH) as nor­mal, con­nect a win­dows key­board, and open a win­dows ter­minal emu­lator in Parallels. Which isn’t really very good.

Trackbacks

Check out what others are saying about this post...


Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!