sftp command can't connect to external ssh server via ssh relay server.

Solution Verified - Updated -

Issue

  • sftp fails with the following error messages when connecting to external ssh server by sftp command via ssh relay server, and it was not possible to connect it.
# sftp -oPort=9022 user@<IP Address> -v
Connecting to <IP Address>...
 user@<IP Address>'s password:  <== The password was input 
Write failed: Broken pipe
Couldn't read packet: Connection reset by peer

Environment

  • Red Hat Enterprise Linux 5
  • Package Version: openssh-4.3p2-72.el5_7.5.x86_64

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