2 ms·
I can't edit this post anymore so another random comment: ssh doesn't work with link local addresses. I just set up an ad-hoc wireless network between my two la
by peterwwillis 16y ago
I can't edit this post anymore so another random comment: ssh doesn't work with link local addresses. I just set up an ad-hoc wireless network between my two laptops and tried to ssh from one to the other. The addressing works because I can "broadcast"-ping both networks successfully:
psypete@pinhead:~$ ping6 -Iwlan0 ff02::1
PING ff02::1(ff02::1) from fe80::216:eaff:fe9b:56e2 wlan0: 56 data bytes
64 bytes from fe80::216:eaff:fe9b:56e2: icmp_seq=1 ttl=64 time=0.055 ms
64 bytes from fe80::20e:8eff:fe13:5741: icmp_seq=1 ttl=64 time=2.23 ms (DUP!)
But unfortunately it seems ssh doesn't know to set its sin6_scope_id for the interface of the bind address I tell it.
psypete@pinhead:~$ strace -e trace=network ssh -6 -b fe80::216:eaff:fe9b:56e2 fe80::20e:8eff:fe13:5741 2>&1 | grep AF_INET6
bind(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fe80::216:eaff:fe9b:56e2", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EINVAL (Invalid argument)
(edit)
Wait, nevermind, i'm a noob. I have to specify the scope ID in the address with the postfix '%wlan0'. Adds to the list of new crap to memorize for IPv6 transition