Hacker News new | ask | show | jobs
by andreareina 2873 days ago
Since the phone's IP address can be expected to change, you can't really use that to choose the right key to present, or to verify the host fingerprint right?. How do you work around this?
1 comments

You can set a static IP in your wireless settings.
Or ‘better’ fix an IP to your device MAC in your dhcp settings.
Usually not needed, since your router will usually try to assign a fixed address for already known devices.
What spockz said takes the words "usually" and "try" out of that. (-:
But means more work, with web interfaces of varying quality
What happens when the DHCP lease expires?
The router will try to reassign it, usually.
Not all routers support this. In fact at work we've got a router that seems to black-hole anything whose source or destination isn't in the DHCP table (TP-Link 480t+).

In the end I solved this by accessing this only while I'm tethered, that fixes the phone's IP address.

Too bad there doesn't seem to be an option to select keys according to host key instead of hostname or alias.