Hi folks,
I'm trying to figure out using ssh (for example) with hostnames
broadcast by avahi, and am running into problems with link local
addresses where the interface needs to be specified.
Using "avahi-browse -atr" I can see the hostname, IPv4 and IPv6
addresses and the relevant interface.
These work:
ssh -4 example.local
ssh -4 192.168.0.1
ssh -6 fe80::212:34ff:fe56:7890%eth1
but these don't:
ssh -6 example.local
ssh: connect to host example.local port 22: Invalid argument
ssh -6 example.local%eth1
ssh: Could not resolve hostname lola.local%eth1: No address associated with hostname
To my mind "ssh -6 example.local" should work, since avahi can report
which interface to use, but the error suggests it has got the IPv6
address from mdns, but not the interface.
Is there something I'm doing wrong, or is this a known issue?
Thanks,
Andrew
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!