From 2bb84aca4f0cb6587e4193e5c31b292b2d18cf47 Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Mon, 29 Jun 2026 15:37:02 +0200 Subject: [PATCH] =?UTF-8?q?fix(get=5Fconfig):=20use=20port=2022=20for=20SS?= =?UTF-8?q?H=20fallback=20=E2=80=94=20self.port=20is=20the=20REST=20API=20?= =?UTF-8?q?port?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In API transport mode, self.port = 443 (HTTPS). All SSH attempts were connecting to port 443 which speaks TLS, not SSH — hence 'banner exchange timed out'. Fix: hardcode port 22 for the SSH config fallback. --- napalm_procurve/procurve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_procurve/procurve.py b/napalm_procurve/procurve.py index 698fca2..43cd376 100644 --- a/napalm_procurve/procurve.py +++ b/napalm_procurve/procurve.py @@ -616,7 +616,7 @@ class ProcurveDriver(ConfigLifecycleMixin, SwitchDriver): "-o", "BatchMode=no", "-o", "KexAlgorithms=+diffie-hellman-group1-sha1,diffie-hellman-group14-sha1", "-o", "HostKeyAlgorithms=+ssh-rsa", - "-p", str(self.port or 22), + "-p", "22", # always SSH port — self.port is the REST API port (443) f"{self.username}@{self.hostname}", "show running-config", ]