To close a Telnet session, enter the command exit at the command prompt:
If it is not possible to terminate a session by entering exit, for example during the login process with password entry, then Linux systems and some clients (such as PuTTY) allow terminal sessions to be canceled using the keyboard shortcut Ctrl+c.
The connection also terminates automatically if no activity is detected over a period of time. You can set this period under Console aging time.
in the section- TCP
- Specify here the number of minutes without activity before an inactive TCP connection (e.g. via SSH) is automatically terminated.
- Outband
- Specify here the number of minutes without activity before a serial connection (e.g. via Hyper Terminal) is automatically terminated.