connect two linux boxes by a crossover cable - nmap

Michael S. Dunsavage mikesd at frontiernet.net
Thu Jul 1 15:44:14 UTC 2004


Jason Staudenmayer wrote:
> By default root might be denied login from telnet due to security problems.
> USE SSH it's just like telnet only more secure.
> 
> 
>>-----Original Message-----
>>From: Michael S. Dunsavage [mailto:mikesd at frontiernet.net] 
>>Sent: Wednesday, June 30, 2004 10:55 AM
>>To: General Red Hat Linux discussion list
>>Subject: Re: connect two linux boxes by a crossover cable - nmap
>>
>>
>>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 ----
>>>
>>>Tried as oridinary user, same results. I appreciate your help !
>>>
>>>Yu
>>>
>>>
>>>
>>>		
>>>__________________________________
>>>Do you Yahoo!?
>>>Yahoo! Mail - 50x more storage than other providers!
>>>http://promotions.yahoo.com/new_mail
>>>
>>>
>>
>>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
>>
>>
>>-- 
>>redhat-list mailing list
>>unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
>>https://www.redhat.com/mailman/listinfo/redhat-list
>>
> 
> 
> 
Is telnet enabled on BOTH machines?

-- 
Michael S. Dunsavage





More information about the redhat-list mailing list