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

Pat pat.callahan1 at gmail.com
Tue Dec 20 02:55:42 UTC 2016


I've been trying for the last two days to make a local "ethernet"
connection between my Ubuntu desktop and a Raspberry Pi Zero.

Does anyone on this list have a working example on Ubuntu?
I'm wondering if anyone here has a working example of a usb
ethernet connection between any version of Rasperian and any Version of
Ubuntu.

I'd specifically like to get avahi to recognize the pi and allow it to
be connected as raspberrypi.local.

Windows and MacOs users do not seem to have this problem and just
connect using ssh over IPv6.  I was able to connect to the zero
immediately from a mac using pi at raspberrypi.local
Details of what I've tried below.

When I get this working I'll post notes on various tutorials that may
need to be updated.

Thanks,
Pat

details:

After dd to the microsd card, /boot has had the recommended changes to
cmdline.txt and config.txt and file ssh exists in /boot.


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




More information about the Raspbian-devel mailing list