Re: connect two linux boxes by a crossover cable - nmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- "Michael S. Dunsavage" <mikesd@xxxxxxxxxxxxxxx> 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@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@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@yu0 root]# telnet xia.yusun.net
> > Trying 192.168.1.2...
> > telnet: connect to address 192.168.1.2: Connection refused
> > 
> > [root@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 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux