I am able to establish the initial telnet session. But from this session I need to create a second. Basically I can not telnet directly to the device I need to access. Interactively this is not an issue but I am attempting to setup an automated test using python.
Does anyone know who to accomplish this?
If you log in from A to B to C, do you need the console input from A to go to C ?
If not, it is fairly straightforward, as you can execute commands on the second server to connect to the third.
I do something like that using SSH, where I have paramiko and scripts installed on both A and B. A logs in to B and executes a command to start a python script on B which then connects to C and does whatever.
Using Python: How can I telnet into a server and then from that connection telnet into a second server?