06-21-2023 06:34 AM
Hi , anyone can please advise how to terminate a telnet session on nexus 9k switch? tried CTL+SHIFT+6 ,THEN type X, but it doesn't work. please advise, thanks in advance.
Solved! Go to Solution.
06-21-2023 07:49 AM
@Christopher Hart , thanks a lot for your help! it works.
06-21-2023 06:53 AM
switch# clear line vty-line |
clear line vty-line <<- this will terminate vty (telnet) line
06-21-2023 07:02 AM
thanks @MHM Cisco World for your advice, but this telnet session is from nexus 9k to a linux server, I ssh to nexus 9k ,then telnet linux-ip port , then stuck there, can't terminate the telnet session. can you please your command works? and how to confirm vty-line ? I tried to run the command "show users" , and it only displays ssh session only, no outgoing telnet session. Please advise, thanks.
06-21-2023 07:14 AM
I will check in my lab
06-21-2023 07:37 AM
06-21-2023 07:43 AM
Thanks @MHM Cisco World for your test. But it is not what I meant. as I mentioned above, I ssh to nexus 9k switch, then from this nexus run the command "telnet linux-svr-ip port" , telnet status is connected, then stuck there, can't exit from it. What you tested is you telnet to nexus switch, then tried to terminate this telnet session. It is different.
06-21-2023 07:50 AM - edited 06-21-2023 07:51 AM
you can terminate it in telnet destination (show above) or from the NSK via exit
06-21-2023 07:45 AM
Hello!
You can terminate a Telnet session originating from the command line of a Nexus switch running NX-OS with the Control+] key combination, then entering the quit command. An example is shown below from a switch in my lab:
switch# telnet 172.18.230.232 2018 vrf management
Trying 172.18.230.232...
Connected to 172.18.230.232.
Escape character is '^]'.
CCCC
Press RETURN to get started!
^] <<< Control+] here
dcos-telnet> quit
Connection closed.
switch#
I hope this helps - thank you!
-Christopher
06-21-2023 07:49 AM
@Christopher Hart , thanks a lot for your help! it works.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide