s92025592025 / home-assistant-ssl-from-asus-router

Apache License 2.0
10 stars 6 forks source link

ssh-keyscan needs port specified #6

Open JDawg2222 opened 6 months ago

JDawg2222 commented 6 months ago

ssh-keyscan fails with error: write (192.168.0.1): Connection refused If the router is not running ssh on port 22

Need to add the -p and the port when calling ssh-keyscan, e.g.:

echo "Getting Router Public RSA Key...."
ROUTER_RSA_KEY=$(ssh-keyscan -t rsa -p $(bashio::config 'sslFromAsusRouter.routerSshPort') ${ROUTER_IP})