Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor II
1,742 Views

SSH into Edison from Linux => No route to host

Hi!

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

machine says:

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

7 Replies
Highlighted
New Contributor I
377 Views

On your host, have you added to your /etc/network/interfaces

iface usb0 inet dhcp

or a static IP address?

What is the output of ifconfig ?

Istvan

0 Kudos
Highlighted
New Contributor II
377 Views

This stands in my file '/etc/network/interfaces':

iface usb0 inet static

address 192.168.2.2

netmask 255.255.255.0

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:33

lo 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)
0 Kudos
Highlighted
Community Manager
377 Views

Hi Christoph.P,

 

 

I've a few questions/comments:
  1. Do you have any firewalls or VPNs active? If so, try disabling them, they might be blocking your connection.
  2. What's your computer's IP address?
  3. 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.
  4. 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?
These questions will help us have a better understanding of your issue.

 

 

We'll be waiting for your response.

 

 

-Sergio

 

0 Kudos
Highlighted
New Contributor II
377 Views

  1. No firewalls or vpn's are active
  2. 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)
  3. 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
  4. 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?

Thanks!

0 Kudos
Highlighted
Community Manager
377 Views

Hi Christoph,

 

 

What image are you using? What's the result of turning off the Ethernet interface and turning on the USB interface? You can do this using:

 

Ifconfig usb0 down Ifconfig eth0 down Ifconfig usb0 up

 

 

Let us know your results.

 

 

-Sergio

 

0 Kudos
Highlighted
New Contributor I
377 Views

Hi Christoph,

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.

Istvan

0 Kudos
Highlighted
Community Manager
377 Views

Hi Christoph,

 

 

Do you still need assistance with this case?

 

 

-Sergio

 

0 Kudos