Jun-18-2017, 06:11 AM
Hi all,
im almost new in python.
I tried to get a connection to a cisco device and execute some commands, all fine here.
But my problem is that when I tried to do a second connection over ssh to a secondary device from the first one, it is not working .
my pc ---> ssh to device one ---> ssh to device two.
The reason that I need to do it like this is because the secondary device has an ACL to allow only traffic from connections came from device one.
What you suggest to get this done ?
What I need to do to get and execute commands into the secondary device?
thanks,
regards.
im almost new in python.
I tried to get a connection to a cisco device and execute some commands, all fine here.
But my problem is that when I tried to do a second connection over ssh to a secondary device from the first one, it is not working .
my pc ---> ssh to device one ---> ssh to device two.
The reason that I need to do it like this is because the secondary device has an ACL to allow only traffic from connections came from device one.
What you suggest to get this done ?
What I need to do to get and execute commands into the secondary device?
thanks,
regards.
1 |
my code here |