Why does ssh/sftp fail with "Ncat: Connection Timed out" errors on Red Hat Enterprise Linux (RHEL) 7 clients when using the "nc" command to connect to the proxy?

Solution Unverified - Updated -

Issue

  • I am using nc as the ProxyCommand for the ssh or sftp client on RHEL7, but the connection times out with the following message:

        Ncat: Connection Timed out
    
  • I am using the following ProxyCommand for ssh or sftp:

        nc -v -x <proxy_ip>:<proxy_port> %h %p
    
  • I do not have the same issue when using RHEL6 clients

Environment

  • Red Hat Enterprise (RHEL) 7
  • nc command used with the ssh or sftp ProxyCommand option

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