To allow Home Assistant to talk to the router make sure that SSH is enabled for LAN only and that port 6022 is open for ssh. This is done under 'administration'...'system'...'service'