I try to connect to an USB connected Edison from a Linux machine. The linux machine recognizes
the USB device and I can set a static IP for the adapter. But when I try to ssh into it, the linux
ssh: Exited: Error connecting: No route to host
Thats the route output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 usb0
This stands in my file '/etc/network/interfaces':
iface usb0 inet static
After a manual "ifup usb0", the output of "ifconfig" is:eth0 Link encap:Ethernet HWaddr 40:D8:55:17:CB:7F inet addr:192.168.1.18 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::42d8:55ff:fe17:cb7f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:65572 errors:0 dropped:617 overruns:0 frame:0 TX packets:146510 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13520982 (12.8 MiB) TX bytes:55316869 (52.7 MiB) Interrupt:33lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:368 errors:0 dropped:0 overruns:0 frame:0 TX packets:368 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:211968 (207.0 KiB) TX bytes:211968 (207.0 KiB)usb0 Link encap:Ethernet HWaddr 96:B5:21:46:E0:C9 inet addr:192.168.2.2 Bcast:0.0.0.0 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I've a few questions/comments:
- Do you have any firewalls or VPNs active? If so, try disabling them, they might be blocking your connection.
- What's your computer's IP address?
- Your computer and the Edison need to be in the same network for the connection to be successful. If the static IP set and the computer are on different networks you won't be able to connect.
- What command have you used to try to SSH? Are you using any software tool to SSH or are you logging in directly from the console?
We'll be waiting for your response.
- No firewalls or vpn's are active
- The IP address of the USB network interface of the linux machine is 192.168.2.2 (the regular ethernet interface eth0 is 192.168.1.18)
- The Edison has the IP 192.168.2.15 and the one from where I want to ssh on the edison has 192.168.2.2. So yes - they're in the same subnet
- I'm trying to ssh into it with "> ssh 192.168.2.15". That works with a debian machine, too
I should say that the machine, from where I want to start the ssh session is an embedded machine, too. It is running arch linux (3.7.0). It
has no graphical interface so I have to work with it over a console, too. What I noticed is, that when I do an "ifconfig", the paragraph with
the USB0 doesn't show the word "RUNNING" just as eth0 does. Do I have to install several additional drivers to get the USB0 interace to
work with the edison?
What does lsusb show on your host? I checked it on a Raspi, and it identifies the Edison OTG usb as:
Bus 001 Device 010: ID 8087:0a9e Intel Corp.
usb0 should be RUNNING afaik.
Reconnecting the OTG I noticed, that the dhcp on the host has given the usb0 a new IP address. It is worth to check ifconfig all over again.