Translated message

A translation of this page exists in English.

为什么在一个空闲的 SSH 会话中会出现错误 "ssh Write failed:Broken pipe"?

Solution In Progress - Updated -

Issue

  • 随着用于 SSH 访问的 "jump servers" 从 Solaris 迁移到 Red Hat Enterprise Linux 6,我们发现处于闲置状态的会话会被终止,并显示错误信息 "ssh Write failed:Broken pipe"。不知道为什么会发生这种情况。
  • 尝试使用客户端选项 ServerAliveInterval、ServerAliveCountMax 和 TCPKeepAlive 来解决这个问题,但并不成功。
  • 当一个会话没有被使用时,它会关闭并显示错误信息"Write failed:Broken pipe"。通常发生在 60 分钟左右。但有时这个情况根本不会发生。有时可能发生在更长的时间后。
ssh Write failed: Broken pipe

Environment

  • 使用 OpenSSH 的 Red Hat Enterprise Linux 6 客户端
  • 使用 OpenSSH 的 Red Hat Enterprise Linux 6 "login server"

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