Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Encountering a strange problem on my Ubuntu machine, trying connecting to 111.111.111.111 (example ip)

via SSH fails.

When trying to connect from other win machine its works.

I don't have a firewall on the machine and i can ping 111.111.111.111 and get success response

Trying to ssh (using -vvv) to it get a connection timeout response.

Running the command :

nc -v -w 1 111.111.111.111 -z 22

returns :

nc: connect to 111.111.111.111 port 22 (tcp) timed out: Operation now in progress

Running nc command from my working win machine :

C:\nc>nc -v -w 1 XXXXXXXXX  -z 22
DNS fwd/rev mismatch: XXXXXXXXX != 289472-XXXXXXXXX
XXXXXXXXX [111.111.111.111] 22 (ssh): open

Any ideas what can point to my problem ?

share|improve this question
    
How do you connect from the win machine? Ssh with putty or similar or another method? Are you sure you connect to port 22? – terdon Oct 1 '13 at 15:48
    
and that nc command from the win machine? – barlop Oct 1 '13 at 17:14
    
from win machine im using putty to connect or winScp and using port 22 – Nimrod007 Oct 2 '13 at 9:26
    
add nc command out put from win machine to question , thanks – Nimrod007 Oct 2 '13 at 9:37
    
Have you seen this Web page? ubuntuforums.org/showthread.php?t=1544440 – MariusMatutiae Oct 2 '13 at 14:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.