[Raspbian-devel] Raspberry Pi to Linux (Ubuntu) via USB

Stian Skjelstad stian at barnfind.no
Tue Dec 20 06:10:56 UTC 2016


>
> In ubuntu, an attempt to connect using pi at raspberrypi.local fails with
> ssh: Could not resolve hostname raspberrypi.local: Name or service not
> known
> $ssh -6 pi at raspberrypi.local
> ssh: Could not resolve hostname raspberrypi.local: Name or service not
> known
>
> Curiously, an attempt with the IPv6 address fails, but with Connection
> refused.
>
> $ ssh -6 pi at fe80::3d6e:a03a:33b8:12f5%enp0s20u9u1u3
> ssh: connect to host fe80::3d6e:a03a:33b8:12f5%enp0s20u9u1u3 port 22:
> Connection refused
>
>
> $ ifconfig
> eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
>         ether 94:de:80:6d:24:1c  txqueuelen 1000  (Ethernet)
>         RX packets 0  bytes 0 (0.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 0  bytes 0 (0.0 B)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>         device interrupt 20  memory 0xf3600000-f3620000
>
> enp0s20u9u1u3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet6 fe80::3d6e:a03a:33b8:12f5  prefixlen 64  scopeid
> 0x20<link>
>         ether f6:38:64:f8:7e:a4  txqueuelen 1000  (Ethernet)
>         RX packets 14  bytes 1937 (1.9 KB)
>         RX errors 1  dropped 0  overruns 0  frame 1
>         TX packets 101  bytes 16782 (16.7 KB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.1.13  <snip>
>
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
> <snip>
>
> $ssh -6 pi at raspberrypi.local
> ssh: Could not resolve hostname raspberrypi.local: Name or service not
> known
>
>  $ ssh -6 pi at fe80::3d6e:a03a:33b8:12f5%enp0s20u9u1u3
> ssh: connect to host fe80::3d6e:a03a:33b8:12f5%enp0s20u9u1u3 port 22:
> Connection refused
>

If all these commands are ran on your ubuntu desktop computer, the last ssh
command is attempting ssh to your localhost, not the remote pi card. Try to
manually type in the ipv6 local scope address of the remote pi card (but
include the %xxx data, since local scope addresses require that to be
present).

The mdns/avahi part I can not answer for, since I have never used it. But
you claim that it should work, since windows and os-x computers
automatically can fint the PI card, so it is something with the ubuntu
desktop machine that has the issue. Which avahi/mdns packages do you have
installed, and are the daemon running?


 --

Stian Skjelstad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/raspbian-devel/attachments/20161220/7f2b0543/attachment.html>


More information about the Raspbian-devel mailing list