From 01afb93c5ac6a76b15d01087222f7512fcaf0ce8 Mon Sep 17 00:00:00 2001 From: Leonardo Parente <23251360+leoparente@users.noreply.github.com> Date: Thu, 2 Jan 2025 14:37:15 -0300 Subject: [PATCH] fix: allow jumphost by installing openssh-client on docker image --- agent/docker/Dockerfile | 2 +- docs/backends/device_discovery.md | 1 + docs/config_samples.md | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/docker/Dockerfile b/agent/docker/Dockerfile index 4b83336..a4ddde6 100644 --- a/agent/docker/Dockerfile +++ b/agent/docker/Dockerfile @@ -29,7 +29,7 @@ FROM python:3.12-slim-bullseye RUN \ apt update && \ - apt install --yes --force-yes --no-install-recommends nmap && \ + apt install --yes --force-yes --no-install-recommends nmap openssh-client && \ rm -rf /var/lib/apt RUN addgroup --system netdev && useradd -m --shell /bin/bash -G netdev appuser && echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers diff --git a/docs/backends/device_discovery.md b/docs/backends/device_discovery.md index b2bb06c..da6a7fc 100644 --- a/docs/backends/device_discovery.md +++ b/docs/backends/device_discovery.md @@ -70,6 +70,7 @@ orb: password: ${PASS} optional_args: canonical_int: True + ssh_config_file: /opt/orb/ssh-napalm.conf - hostname: myhost.com username: remote password: 12345 diff --git a/docs/config_samples.md b/docs/config_samples.md index 374039f..0f09b71 100644 --- a/docs/config_samples.md +++ b/docs/config_samples.md @@ -27,6 +27,8 @@ orb: hostname: 192.168.0.5 username: admin password: ${PASS} + optional_args: + ssh_config_file: /opt/orb/ssh-napalm.conf ``` Run command: