[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#295731: ssh fails to bind link-scope IPv6 addresses



# ssh -6 fe80::2xx:xxff:fexx:xxxx
ssh: connect to host fe80::2xx:xxff:fexx:xxxx port 22: Invalid argument
This is not a bug in sshd. It is arguably a bug in the ssh client.

Since any given link-local address can potentially exist on all non-loopback interfaces on a host, you need to identify which interface you are connecting to. Applications are supposed to do this by setting sin6_scope_id in the struct sockaddr_sin6 passed to connect() [RFC3493], but that requires the application to be more ipv6-aware than you get by just calling getnameinfo()

Attachment: p7sm1LEWcgV5B.p7s
Description: S/MIME cryptographic signature


Reply to: