core: ASUSWRT integration won't connect via SSH: No matching algo hostkey

The problem

After updating the firmware of ASUS router the ASUSWRT integration is unable to set up a connection. Router log says:

RT-AC86U dropbear[6763]: Exit before auth from <192.168.1.1:59492>: No matching algo hostkey

I did a factory reset on the router with newest MerlinWRT firmware 384.18. This does not solve the problem. Fresh install on previous firmware, MerlinWRT firmware 384.17 the problem is solved and connection works as usual.

I verified there are more users reporting the same problem: https://community.home-assistant.io/t/asuswrt-ssh-login-failing/208525

Environment

  • Home Assistant Core release with the issue:
  • Last working Home Assistant Core release (if known): Latest, also tested on 0.112.0b3
  • Operating environment (OS/Container/Supervised/Core): HassOS 4.10
  • Integration causing this issue: ASUSWRT
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/asuswrt/

Problem-relevant configuration.yaml

# Example configuration.yaml entry
asuswrt:
  host: 192.168.1.1
  username: admin
  password: password
  protocol: ssh
  mode: router
  sensors:
    - devices
    - upload
    - download
    - upload_speed
    - download_speed

device_tracker:
  - platform: asuswrt
    host: 192.168.1.1
    username: admin
    interval_seconds: 10
    consider_home: 180
    new_device_defaults:
      track_new_devices: true

Traceback/Error logs


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll prepare a version for release

Thank you. This worked!! Hopefully will be included in next Homeassistant update…

Its a little complicated in HassOS because it will overwrite a pip installation. Login via ssh (make sure protection is disabled in the ssh add-on) docker ps find the code before the homeassistant container: eg. c0ea8aecacae homeassistant/raspberrypi4-homeassistant:0.112.0

docker exec -it c0ea8aecacae /bin/bash  (replace code wit your container ID)
pip install aioasuswrt==1.2.7b0
vi /usr/src/homeassistant/homeassistant/components/asuswrt/manifest.json  (change aioasuswrt to 1.2.7b0, may need to Google using vi)
ha core restart