netcat for SSH connection through HTTP giving error: nc: Proxy error: "HTTP/1.1 200 Connection established"

Solution Verified - Updated -

Issue

  • By running the following command:
nc -x our_proxy_ip:our_proxy_port -X connect example.com 22
* It returns 
nc: Proxy error: "HTTP/1.1 200 Connection established"
* Expected result
SSH-2.0-OpenSSH_4.3

Environment

  • Red Hat Enterprise Linux 5/6
  • Using HTTP/1.1 proxy servers

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content