sftp process running in a container fails intermittently with "kex_exchange_identification: Connection closed by remote host"

Solution Verified - Updated -

Issue

  • Application container does sftp to an external vendor
  • Sftp process running in a container fails intermittently with "kex_exchange_identification: Connection closed by remote host"
  • Sftp server is running in AWS cloud
  • The same sftp command from the node running the pod initially never failed, but ultimately failures could be
    reproduced on the node as well.
  • Different versions of SSH i.e v1 and v2 etc did not help

Environment

  • Redhat Openshift Container Platform 4.x

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