go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/inventory/testdata/ssh_inventory.yaml (about) 1 apiVersion: v1 2 kind: Inventory 3 metadata: 4 name: mondoo-ssh-inventory 5 labels: 6 environment: production 7 spec: 8 assets: 9 # linux with password authentication 10 - id: linux-with-password 11 connections: 12 - host: 192.168.178.20 13 backend: ssh 14 credentials: 15 - user: chris 16 password: password1! # implicit type password 17 # linux with ssh agent reference 18 - id: linux-ssh-agent 19 connections: 20 - host: 192.168.178.20 21 backend: ssh 22 credentials: 23 - type: ssh_agent 24 user: chris 25 # linux with custom identity keys 26 - id: linux-identity-key 27 connections: 28 - host: 192.168.178.20 29 backend: ssh 30 credentials: 31 - user: chris 32 private_key_path: ./private_key_02 # implicit type private key 33 # ssh with sudo 34 - id: linux-with-password 35 connections: 36 - host: 192.168.178.20 37 backend: ssh 38 sudo: 39 active: true 40 credentials: 41 - type: ssh_agent 42 user: chris