Connection to a network equipment through a middle server using a specfic pattern #93
-
Hi, Firstly, I'm pretty new in Go (and on github too) and I would like to adapt some of my python scripts using scrapli to Go. In python, I used scrapli to execute command on networks equipments through a "middle server" overriding the "open_cmd" transport arguments with my connection pattern (ssh <my_user>@<middle_server> -t -- <equipment_name>) I would like to do the same kind of connection with scrapligo, and I think I can use the "ExtraArgs" field of transport.System struct, but I don't know exactly how to do? Do you have any idea and is it the good way of using "ExtraArgs"? Thanks for your help Hervé |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @skadomers Probably I would recommend just setting proxy jump things in your ssh config file, but if you want to do it this way, yep you are correct, you can override the You can also check out how it is done in kne here - by passing options to the driver. HTH! |
Beta Was this translation helpful? Give feedback.
Hey @skadomers
Probably I would recommend just setting proxy jump things in your ssh config file, but if you want to do it this way, yep you are correct, you can override the
OpenBin
andOpenArgs
of the system transport here.You can also check out how it is done in kne here - by passing options to the driver.
HTH!