I have 3 machines (A, B and C) behind WLAN Router. From B i can make ssh to A and from A to B also. Ssh between C and A is also working (both destination, C->A and A->C). But when i try to connect B to C or C to B i get always
ssh: connect to host <HOST> port 22: No route to host
What can be the reason for this error?
edit: I've made small mistake - machine A has wired connection to the router!
@ Marnix A. van Ammers: Here the three ifconfig outputs:
Machine A:
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:74:b8
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fe1c:74b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4602075 errors:0 dropped:0 overruns:0 frame:0
TX packets:8746230 errors:0 dropped:0 overruns:13 carrier:0
collisions:0 txqueuelen:1000
RX bytes:816857533 (816.8 MB) TX bytes:2974068829 (2.9 GB)
Interrupt:11 Base address:0x1800
Machine B:
$ ifconfig wlan0
wlan0 Link encap:Ethernet Hardware Adresse XX:XX:XX:XX:f8:7a
inet Adresse:192.168.0.5 Bcast:192.168.0.255 Maske:255.255.255.0
inet6-Adresse: fe80::21b:77ff:feb6:f87a/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:39449 errors:0 dropped:0 overruns:0 frame:0
TX packets:36805 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:28118658 (28.1 MB) TX bytes:5681482 (5.6 MB)
Machine C:
$ ifconfig wlan0
wlan0 Link encap:Ethernet Hardware Adresse XX:XX:XX:XX:a7:b5
inet Adresse:192.168.0.8 Bcast:192.168.0.255 Maske:255.255.255.0
inet6-Adresse: fe80::226:b6ff:fe4e:a7b5/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:1611 (1.6 KB) TX bytes:5613 (5.6 KB)
The netstat outputs:
Machine A:
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Machine B:
$ netstat -nr
Kernel-IP-Routentabelle
Ziel Router Genmask Flags MSS Fenster irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
Machine C:
$ netstat -nr
Kernel-IP-Routentabelle
Ziel Router Genmask Flags MSS Fenster irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
