Add ssh-rsa as acceptable an host key algorithm (#74684)

This commit is contained in:
siyuan-nz 2022-07-08 19:51:10 +12:00 committed by GitHub
parent fd7330ea77
commit 06530ebfa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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