Python Forum
Building SSH tunnel? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: Building SSH tunnel? (/thread-25985.html)



Building SSH tunnel? - searching1 - Apr-17-2020

Hi Everyone,

Would like to know if anyone here has a sample of code related to ssh tunnel using pexpect and default libraries only?

Currently I'm not allowed to add or install and module/libraries on the clean room/remote server.

My target is to build an ssh tunnel from clean room ----> to another server(remote server) ----> ssh to device(cisco) and execute the command. All involved server are linux and most device are cisco.

During my testing, Im able to ssh to another remote server but cannot enter to the device since my connection break.

https://imgur.com/nZyvWRA

Hope you could help me, thanks