cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1699
Views
0
Helpful
1
Replies

SSH switch/router via Linux jump server through netmiko script

nirajrai
Level 1
Level 1

The following is an access method being followed to access endpoint switch/Router

windows laptop --SSH-> Linux Jump server --SSH ->Cisco Switch/Router

Can someone help with a Netmiko python script? 

1 Reply 1

Samer R. Saleem
Level 4
Level 4

Hi

 

https://pynet.twb-tech.com/blog/automation/netmiko.html

 

you can find the code to SSH to Cisco router in it

In [1]: from netmiko import ConnectHandler

In [2]: cisco = {
...: 'device_type': 'cisco_ios',
...: 'host': 'cisco.domain.com',
...: 'username': 'admin',
...: 'password': 'cisco123',
...: }

Review Cisco Networking for a $25 gift card