Did you get any joy getting SSH connections to your ASUS router working? I just tried on my ASUS DSL AC-56U modem router and not having any joy with SSH, getting the following:
ERROR (Thread-8) [homeassistant.components.device_tracker.asuswrt] Unable to connect via SSH: could not set shell prompt (received: b" unset PROMPT_COMMAND\r\n# PS1=’[PEXPECT]\$ ‘\r\n[PEXPECT]\$ set prompt=’[PEXPECT]\$ '\r\n[PEXPECT]\$ ", expected: '\[PEXPECT\][\$\#] ').
Was working fine before, but now I get this problem as well.
I upgraded to Firmware Version:3.0.0.4.380_7378 on my RT-AC87U, so maybe that is related.
I refreshed my ssh keys after the upgrade, but no luck.
Anyone solve this?
Make sure you have SSH activated in the router. Older firmwares doesn’t have SSH. Check in the router under “Administration / System / Enable SSH” (might differ how to get to the SSH-part in your router model).
You can also try using ssh to the router from your HA-servers terminal.
Or check that port 22 (or whatever port you’re using for SSH in the router) with nmap. Example: nmap -sT -O 192.168.0.1
Same story here. This worked for me before, but broke earlier this year. I’ve confirmed I’m still able to ssh from the HA machine to the router manually, so it looks like either an asus update or a HA update broke it. Tend to lean more towards HA.
and yet, I’m on the latest version of HA and running an Asus Merlin firmware variant (380.66_4) which I constant keep upgraded as quickly as I can, and have never had an issue with SSH device tracking.
Hi,
I’m trying to use AsusWRT on my AC68U
I tried both telnet and ssh by username and password. Same return as SSH enable?
on the router log. it says login attempt from nonexsistent user.
I can login from my raspberry pi by ssh [email protected] it works.
Any suggestion?
Thanks for pointing it out. I got it login in. Problem is the misspelling.
Now hass is able to login by telnet and WORKS OK. But it is returning some errors.
2017-09-24 13:56:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 233, in _step
result = coro.throw(exc)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/init.py”, line 331, in async_update_config
dev_id, device)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/init.py”, line 739, in update_config
with open(path, ‘a’) as out:
PermissionError: [Errno 13] Permission denied: ‘/home/homeassistant/.homeassistant/known_devices.yaml’
there must be a permissions problem accessing “/home/homeassistant/.homeassistant/known_devices.yaml”
check the permissions on the file and make sure the user HA is running as has access, or maybe just delete it and restart HA and hopefully it should sort itself out
Sorry for recycling this old thread. But this issue is still present in my current setup: the asuswrt device tracker is not functioning with SSH, only with telnet.
Shouldn’t we file a bug report? How would I go about doing that?