03-20-2024 01:22 AM - last edited on 03-20-2024 02:03 AM by rupeshah
My setup :
My windows laptop -> Linux (jump host) -> Cisco switch
I have the above setup and I'm trying to connect from my laptop to cisco switch using python, I have used redispatch function in netmiko, that has some real issues.
Do we have any other way to connect?
03-20-2024 01:41 AM
You can use SSH Tunneling, check here
https://www.ssh.com/academy/ssh/tunneling-example
03-21-2024 12:57 AM
Hi @Ruben Cocheno , I'm trying to achieve this in Python, I'm unable to do so.
03-21-2024 01:13 AM
You can port forward port 22 of your switch to your localhost through your jumphost:
ssh -L 127.0.0.1:22:{your Cisco switch}:22 {your Jumphost}
Then you can connect with python to 127.0.0.1:22
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide