How to break/escape a telnet/ssh session from NX OS nexus?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 03:51 PM - edited 03-08-2019 01:26 AM
Is there any break/escape key sequence from a telnet/ssh session from a Cisco Nexus to another device?
I know on IOS and IOS XE we can use ""Ctrl+Shift+6" to break a telnet/ssh session and get back to the device, but I can't find a method to to the same from Nexus OS. I already tried "Ctrl+C", "Ctrl+[" and several other key combinations without success.
Also, is there something equivalent to "show session" and "clear session X" on NX OS?
- Labels:
-
Other Switches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 04:21 PM
Just type "exit" to disconnect the session
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 07:34 PM
I guess I didn't make my question clear enough.
There are cases when you get stuck on a telnet/ssh sessions (for example, when changing the IP address on the direct link on the remote device), and you have to go back to the local device to manually kill the connection.
On a Cisco IOS devices, this is done by the well know break sequence "crtl+swift+6", and then using "show session" to find out the ssh/telnet session you want to kill. You can also go back to your last sh/telnet session by hitting enter. I just wanted to know if NX OS support this functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 01:14 PM
control c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 11:45 PM
Did you ever discover whether this is possible? I also have the same issue with my NXOS devices. It is annoying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 09:03 AM
No direct escape sequence but shift-ctrl-x brings up a dcos prompt and menu
<Nexus 7k># telnet 172.28.240.34
Trying 172.28.240.34...
Connected to 172.28.240.34.
Escape character is '^]'.
Switch 2>
shift-ctrl-x
dcos-telnet> c
Connection closed.
<Nexus 7k>#
? gives other options as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 12:58 PM
https://www.cisco.com/c/en/us/support/docs/dial-access/asynchronous-connections/14957-tcpkeepalive.html
tcp keep alive can solve your issue config it under VTY.
check link above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 08:14 AM - edited 06-27-2023 08:14 AM
you can try with Ctrl+] and then Q and hit Enter.
