LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2004, 11:30 PM   #1
PenguinHead
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
Angry no route to host


OK... I'm stumped. I can ping my host 192.168.2.150. My host can ping me. However, when I open a SSH session to host (or any session for that matter which are TCP), I get the miserable, "no route to host" from my workstation.

This is a fresh install. The network seems fine from a ping perspective. Any advice? Anyone seen this before? Is it me, or have I lost some basic network troubleshooting fundamentals?

Blah,
Chris
 
Old 12-30-2004, 11:45 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
This is rare to see no route to host, I'd expect timeouts instead. But in any case, edit /etc/hosts and windows host file to include ip's of your workstatations, it is most probably DNS problem, when you try to ssh to a host that cannot resolve the name of the source and/or its own name it will timeout.
Hope it helps.
 
Old 12-30-2004, 11:46 PM   #3
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
A firewall can easily block incoming connections. Check your firewall and check to see if the SSH daemon is started.
 
Old 01-01-2005, 09:01 AM   #4
louis_m_c
LQ Newbie
 
Registered: Dec 2004
Location: Saint-Hubert, Canada
Posts: 26

Rep: Reputation: 15
Lightbulb

smells like firewall issue. be sure port 22 (or other verify your config, use webmin for that it's great) is open to intranet.

also with webmin you can setup easily SSHd.

Then be sure you have a security service (anything that can generate keys public and private of different types (hdmac-5, RSH, KSH, etc.) i'm not used to that, I can't help much) to keep your ssh session secured.

on my windows clients I've been successful using Putty for X11 takeover of my server

I belive the best how-to for you would be one about VPN as SSH is often talked about in it.

I hope this help a bit

happy new year
 
Old 01-07-2005, 04:57 AM   #5
againstms
Member
 
Registered: Nov 2004
Location: Pretoria South Africa
Distribution: Fedora Core 2
Posts: 74

Rep: Reputation: 15
Okay I have the exact same problem, it seems that it has to be on the machien that I am trying to ssh into because I can ssh into another bo on my network, what do I need to configure on the box I can nto get into, I can however ssh from that box to my box????
 
Old 01-20-2005, 10:45 AM   #6
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684

Rep: Reputation: 56
Try to see if port 22 is open seen from the machine where you cannot login. Use nmap for that. It is not only a portscanner, but also a great security audit tool and connectivity checker:

nmap name-of-the-machine-where-I-cannot-log-in

Nmap is also available for windows and it will show you if port 22 is open.

cheers

Markus
 
Old 01-21-2005, 05:47 AM   #7
againstms
Member
 
Registered: Nov 2004
Location: Pretoria South Africa
Distribution: Fedora Core 2
Posts: 74

Rep: Reputation: 15
Unhappy

Ok, port 22 is open on both achine sbut I still get the same error and can not ssh int the box, but I can ssh into other boxesfine from both systems, just the one machine doesn't seem to allow these sessions...
If I do a nmap localhost I do get the message that port 22 is open for ssh!
 
Old 01-21-2005, 07:21 AM   #8
louis_m_c
LQ Newbie
 
Registered: Dec 2004
Location: Saint-Hubert, Canada
Posts: 26

Rep: Reputation: 15
Make sure SSHd is listening on 192.168.2.150 in your /etc/ssh/sshd_config

if it still aint it send your sshd_config here
 
Old 02-02-2005, 12:45 PM   #9
spikeroo
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
disable /etc/init.d/iptables
 
Old 02-02-2005, 03:03 PM   #10
oddo
Member
 
Registered: Sep 2003
Location: Bucharest
Distribution: Slackware *.*
Posts: 36

Rep: Reputation: 15
I suggest these steps to see where the trouble is:

1. netstat -tlnp - to see if sshd is listening and on what interface
2. telnet 192.168.x.x 22 ( the host with the ssh server) to see if you can reach ssh daemon
If not - check firewall
iptables -F
iptables -t filter -I INPUT -m tcp -p tcp --dport 22 -j ACCEPT
( you run this from your sshd server)
If telnet succeded go to step 3.

3. If the machine where you are trying has more than one eth try to see if this one is working
ssh -I 192.168.x.y 192.168.x.x ( if ssh client makes the request from another interface by default, and routes are incorectly configured you will get that message that you complain about)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No route to host Airwaves Linux - Networking 2 11-04-2005 08:15 AM
no route to host nerdboi Linux - Networking 9 02-08-2005 07:40 AM
no route to host php *BSD 2 11-10-2004 03:05 PM
No route to host senzoga Linux - Networking 1 07-14-2004 07:03 PM
No Route To Host Que Linux - General 10 08-19-2002 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration