Hello I have the following setup:
Ubuntu 14.04 LTS Laptop
A lot of Raspberry-Pi Model 2 with WLAN
The complete setup is based on 802.11 WLAN AD-HOC mode. None of the Pis nor the Laptop uses any static IPs (No IPv4 and IPv6) The only address available are the IPv6 Link-Local Addresses fe80::
Every Pi has the avahi-daemon on it and I am using mdns on each of them. Hence I could ping them using their .local names. viz.
ping6 -I wlan0 hydrogen.local
ping6 -I wlan0 radium.local
The only concern is why can't I use ssh and scp with the .local names of the Pis.
I can perform task with the Link-Local addresses viz.
ssh -6 pi@fe80::a1b2:c3ff:fed4:f5g6%wlan0
scp -6 someFile.txt pi@[fe80::a1b2:c3ff:fed4:f5g6%wlan0]:/home/pi/
but cannot use
ssh -6 pi@hydrogen.local%wlan0
scp -6 someFile.txt pi@[radium.local]%wlan0:/home/pi/
Although I have Pis from the same manufacture which makes typing the MAC addresses less difficult It would be easier for an end user to use the mdns names? Any solution for this?
my /etc/nsswitch.conf on the Ubuntu Laptop is follows:
hosts: files mdns_minimal [NOTFOUND=return] dns mdns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis