nc -v -w 1 111.111.111.111 -z 22 returns port 22 (tcp) timed out: Operation now in progress

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 ?

5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like