Redhat 8.0 -ssh problem - reposted
Steve
steve at focb.co.nz
Tue Apr 20 00:39:13 UTC 2004
can you post the output from an ifconfig on both boxes ?
I think you may find that 192.168.0.71 is not actually the IP address of
node2, the other thing you may want to try is posting the output of
netstat -an | grep :22
when you are ssh'd from node2 to node1 (type this on node1 after logging
in via ssh from node2)
are you using DHCP on node2 ?
--
Steve.
On Mon, 19 Apr 2004, Nilkanth wrote:
> Guys:
> I want to run ssh on my two servers named node1 and node2. I've
> verified both servers are running sshd ( ps; also tried to stop/start
> ssh). I can run ssh, scp...from node2 to node1. But, some reasons, I can
> not run ssh..from node1 to node2. I'm getting following error. ..
>
> ssh: connect to address 192.168.0.71 port 22: No route to host
>
> Please help...
> Thanks,
>
> [root at node1]# ssh node2
> ssh: connect to address 192.168.0.71 port 22: No route to host
> Node 1 Informatino....
>
> [root at node1]# 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
> 40 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U
> 40 0 0 lo
> 0.0.0.0 192.168.0.4 0.0.0.0 UG
> 40 0 0 eth0
> [root at node1]# netstat -a |more
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
> tcp 0 0 *:32768 *:*
> LISTEN
> tcp 0 0 samba:32769 *:*
> LISTEN
> tcp 0 0 *:printer *:*
> LISTEN
> tcp 0 0 *:netbios-ssn *:*
> LISTEN
> tcp 0 0 *:sunrpc *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 *:ssh *:*
> LISTEN
> tcp 0 0 samba:smtp *:*
> LISTEN
> tcp 0 0 samba:x11-ssh-offset *:*
> LISTEN
>
> ssh works fine from Node2 to Node1. Here are node2 information......
>
> [root at node2]# 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
> 40 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U
> 40 0 0 lo
> 0.0.0.0 192.168.0.4 0.0.0.0 UG
> 40 0 0 eth0
> [root at node2]# netstat -a |more
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
> tcp 0 0 *:32768 *:*
> LISTEN
> tcp 0 0 smabaBDC:32769 *:*
> LISTEN
> tcp 0 0 *:netbios-ssn *:*
> LISTEN
> tcp 0 0 *:sunrpc *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 *:ssh *:*
> LISTEN
> tcp 0 0 smabaBDC:smtp *:*
> LISTEN
> tcp 0 0 192.168.0.72:32928 samba:ssh
> ESTABLISHED
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢
More information about the redhat-list
mailing list