junos_exporter icon indicating copy to clipboard operation
junos_exporter copied to clipboard

How to specify jump-host

Open ansible75013 opened this issue 4 years ago • 3 comments

How we can use this exporter when we can only access our infrastructure through a jump-host. ? We can specify that into ~/.ssh/config but how to say that to the exporter ?

ansible75013 avatar May 18 '20 12:05 ansible75013

I don't think this is possible at the moment. The crypto/ssh library that takes care of the SSH connection doesn't support the use of a config file or jumphost at all for that matter. It's not a vanilla openssh but native go.

4xoc avatar May 20 '20 19:05 4xoc

Any reason why @martintopholm's commit is not integrated upstream?

Bischoff avatar Sep 03 '21 11:09 Bischoff

I think I just never did a pull-request. Not using the feature myself, I wasn't sure it was sufficient to solve this issue.

martintopholm avatar Sep 03 '21 14:09 martintopholm