From 06530ebfa1b1ee0f52caa6a3152e1f470cbc7b63 Mon Sep 17 00:00:00 2001 From: siyuan-nz <91467287+siyuan-nz@users.noreply.github.com> Date: Fri, 8 Jul 2022 19:51:10 +1200 Subject: [PATCH] Add ssh-rsa as acceptable an host key algorithm (#74684) --- homeassistant/components/unifi_direct/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/unifi_direct/device_tracker.py b/homeassistant/components/unifi_direct/device_tracker.py index f71498faa11..7a81975c0ba 100644 --- a/homeassistant/components/unifi_direct/device_tracker.py +++ b/homeassistant/components/unifi_direct/device_tracker.py @@ -80,7 +80,7 @@ class UnifiDeviceScanner(DeviceScanner): def _connect(self): """Connect to the Unifi AP SSH server.""" - self.ssh = pxssh.pxssh() + self.ssh = pxssh.pxssh(options={"HostKeyAlgorithms": "ssh-rsa"}) try: self.ssh.login( self.host, self.username, password=self.password, port=self.port