connect two linux boxes by a crossover cable - nmap

Yu Sun yusun9_99 at yahoo.com
Thu Jul 1 15:22:32 UTC 2004


--- "Michael S. Dunsavage" <mikesd at frontiernet.net> wrote:
> Yu Sun wrote:
> > Dear Friends,
> > 
> > As suggested by one friend, I tried to use 'nmap', it seems
> telnet
> > server is running on one host, however, it is still unable to
> > connenct from the other host, see the edited script below:
> > 
> > --- script starts ---
> > 
> > [root at yu0 root]# ping xia.yusun.net
> > PING xia.yusun.net (192.168.1.2) 56(84) bytes of data.
> > 64 bytes from xia.yusun.net (192.168.1.2): icmp_seq=1 ttl=64
> > time=0.118 ms
> > 64 bytes from xia.yusun.net (192.168.1.2): icmp_seq=2 ttl=64
> > time=0.113 ms
> > 64 bytes from xia.yusun.net (192.168.1.2): icmp_seq=3 ttl=64
> > time=0.116 ms
> > 
> > --- xia.yusun.net ping statistics ---
> > 3 packets transmitted, 3 received, 0% packet loss, time 2011ms
> > rtt min/avg/max/mdev = 0.113/0.115/0.118/0.012 ms
> > 
> > [root at yu0 root]# nmap -sX -p 22-100 xianotebook
> > 
> > Starting nmap V. 3.00 ( www.insecure.org/nmap/) 
> > Interesting ports on xia.yusun.net (192.168.1.2):
> > (The 77 ports scanned but not shown below are in state: closed)
> > Port       State       Service
> > 22/tcp     open        ssh                    
> > 23/tcp     open        telnet                  
> > 
> > Nmap run completed -- 1 IP address (1 host up) scanned in 2
> seconds
> > 
> > [root at yu0 root]# telnet xia.yusun.net
> > Trying 192.168.1.2...
> > telnet: connect to address 192.168.1.2: Connection refused
> > 
> > [root at yu0 root]# ssh xia.yusun.net
> > ssh: connect to host xia.yusun.net port 22: Connection refused
> > 
> > ----script end ----
> You can ping each other, correct?
> 
> Maybe put each other machines ip in /etc/hosts.allow
> 
> IE, Machine A will be in Machine's B /etc/hosts.allow, etc
> 
> -- 
> Michael S. Dunsavage
> 


Yes, I can ping each other. I edited the /etc/hosts.allow, however,
got no luck. It is really a puzzle now. Thanks anyway.

Yu



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 





More information about the redhat-list mailing list