netenglabs / suzieq

Using network observability to operate and design healthier networks
https://www.stardustsystems.net/
Apache License 2.0
791 stars 105 forks source link

[Feature]: Define a specific ssh config file #916

Open matheorism opened 11 months ago

matheorism commented 11 months ago

Suzieq version

0.21.0

Install Type

None

Feature type

New component

Use case

The aim is to not populate the default ssh_config file, and on this file, we define configuration for each site. It deals with SSH parameters and ProxyCommand that will take care of our transport layer and get the socket.

Proposed functionality/solution

Perhaps this could be defined in the credentials.yaml as a key-value option

ssh_config: /path/to/ssh_config_file

- namespace: testing
  devices:
  - hostname: leaf01
    password: my-password
    username: vagrant
  - hostname: leaf02
    keyfile: /path/to/private/key
    ssh_config: /path/to/ssh_config_file  <----
    username: vagrant
  - hostname: leaf03
    keyfile: /path/to/private/key
    username: vagrant
    key-passphrase: my-passphrase
  - address: 10.0.0.1
    username: vagrant
    password: my-password

External dependencies

No response

Additional Context