Following is the sequence:
- Telnet from a terminal session to a remote linux machine, Call it A.
- Telnet to some device, Say B, that is accessible only from A.
Now, How do I quit the telnet session to B and stay live on A?
Using the inetutils version of telnet client, you can use the
send escape command:
a$ telnet b b$ telnet c c$ ^] telnet> send escape telnet> q b$
Or use the logout/disconnect command of C:
a$ telnet b b$ telnet c c$ exit b$
And stop using telnet, damn it.
Could you use a different escape sequence when logging in to either A or B? For example,
telnet -e ^Q A telnet B
gives you ^Q on A and ^[ on B.