You are not logged in.

#1 2006-02-02 11:14:26

Panu
Member
From: UK
Registered: 2005-10-09
Posts: 27

SSH: "no route to host" [SOLVED]

Hello,

I can't make an SSH connection from my Arch laptop to my desktop (which runs sshd and shares internet using an access point)

It works from windows using PUTTY, and the internet otherwise works perfectly in Arch. This is what happens:

$ ssh -l myname 192.168.2.1
ssh: connect to host 192.168.2.1 port 22: No route to host

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
192.168.2.0     *               255.255.255.0   U     0      0        0 eth1
default         Tuonela.koti.uk 0.0.0.0         UG    0      0        0 eth1

eth1 is the wireless adapter that I use.
The laptop eth1 is 192.168.2.253
wireless AP is 192.168.2.254
which connets to desktop gateway 192.168.2.1 (Tuonela.koti.uk)

And I can't ping 192.168.2.1 either from Arch.
It shouldn't be a firewall issue on my desktop as Putty does it from win.

Do I have to configure something in SSH?
By the way, does it matter if in my laptop both eth0 (not used) and eth1 have the same static IP?

Thanks for any help!

Offline

#2 2006-02-02 13:06:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: SSH: "no route to host" [SOLVED]

You have two routes to the 192.168.2.0 network, which won't work. If eth0 is not used, deactivate it, and that wil get rid of the unnecessary route.

Offline

#3 2006-02-02 13:53:46

Panu
Member
From: UK
Registered: 2005-10-09
Posts: 27

Re: SSH: "no route to host" [SOLVED]

indeed, thank you

Offline

Board footer

Powered by FluxBB