[CentOS] Problem SSH

minichaz minichaz at acnp.org.uk
Wed Oct 26 19:29:36 UTC 2005


On Wed, 2005-10-26 at 07:14 -0500, Johnny Hughes wrote:
> On Wed, 2005-10-26 at 12:59 +0100, minichaz wrote:
> > On Tue Oct 25 17:54 , Mauricio Merlin <mauricio at cimed.ind.br> sent:
> > 
> > >My Centos 4.1 only accept connections from localhost, my file conf is 
> > >default.
> > >error: ssh: connect to host 192.168.1.78 port 22: No route to host
> > >
> > >
> > >thanks
> > >_______________________________________________
> > >CentOS mailing list
> > >CentOS at centos.org
> > >http://lists.centos.org/mailman/listinfo/centos
> > >
> > 
> > This isn't an SSH problem and it's not a firewall problem either as that would
> > produce a "connection refused" message or similar. You will need to allow
> > incoming SSH connections on the machine to which you are connecting but you don't
> > appear to have got to that stage yet.
> > 
> > "No route to host" would indicate that there's a basic network connectivity
> > problem between the two machines in question. Check you can ping the machines
> > from each other, I suspect you can't.
> > 
> > Most likely you've got a typo in a netmask or something similar.
> > 
> > Charlie
> 
> The no route to host can also happen if IPTABLES is not configured to
> allow port 22 in.
> 
> here is the error when I try to connect from an unauthorized (via
> iptables) ip to my server:
> 
> ssh: connect to host centosg.centos.org port 22: No route to host
> 
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Yeah... I realised this after I sent my message - it's only if the port
is closed that you get "connection refused". Was kinda hoping no one
would notice; I should have known better.

I'll crawl back under my rock. ;)

Thanks,
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20051026/64b6b3ae/attachment.sig>


More information about the CentOS mailing list