On 4/4/20, [email protected] <[email protected]> wrote: > > this breaks for ipv6 addresses. i'd suggest you at least check for ] first > and then look for the colon. example: "[::1]:22". > Well spotted, thank you. I have so far had practically no experience with IPv6, it hasn't quite sunk in. Seems easy enough to match a leading '[' to a trailing ']', then scan the address from there.
> then the big question is what should be put in the thumb file to identify > the host, if you start messing with the network addresses. there can be > different ssh servers per port. for example: gerrit. > I dislike SSH's clutter in the known_hosts file, but I have nothing to offer in its place. Unless I misunderstand your point, my reply would be that duplicate hashes shouldn't be a problem, if applicable. Whatever else goes there, is just a comment. Lucio. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0cc6edbc13d3e92c-M51a332f25cf54c29e38b5041 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
