Hung/Orphaned telnet sessions

If you have had your reverse telnet sessions timeout, or your remote connection lost, you might have come across the following error when trying to reconnect:

Translating "sw1"
Trying R1 (, 2002)...
% Connection refused by remote host


The happens because the sessions according to the router is still active and the inactive timeout has not yet expired. To fix this is easy, using the show line command you will see the active sessions marked with a “*”, like below:



In order to reconnect, you have to release the current active/orphaned sessions. Use the clear line {line number} command referencing the output from above.
IETS#clear line 2

IETS#clear line 3


Then once all the orphaned sessions are closed, you will be able to connect again.

Translating "sw1"
Trying SW1 (, 2002)... Open

Add to FacebookAdd to NewsvineAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to Ma.gnoliaAdd to TechnoratiAdd to Furl

2 thoughts on “Hung/Orphaned telnet sessions

    1. OMW, I am honored.
      You are 100% right, that would a better work around to connection problem, but there are still times when you need or want to kill all the active sessions on the fly :).
      About your number, I suppose it is a bit geek but why I think your number is the coolest, 1337 is short for ELITE in Leetspeak, often used and synonymous in Internet communities with prestige and accreditation(ie non-NOOB).
      Thanks & Regards ;)

Please leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.