<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohei-a</author_name>
  <author_url>https://blog.hatena.ne.jp/yohei-a/</author_url>
  <blog_title>ablog</blog_title>
  <blog_url>https://yohei-a.hatenablog.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>Mac</anon>
  </categories>
  <description>事象 例えば、EC2 の Amazon Linux に ssh で接続して実行時間の長い*1コマンドを実行しているとタイムアウトして以下のメッセージが出力される。 packet_write_wait: Connection to **.***106.21 port 22: Broken pipe 解決策 クライアント（自分の場合は Mac）の ~/.ssh/config に以下を追記する。 ServerAliveInterval 60 上記の設定の場合、60秒間隔で Keep Alive のパケットが送信され、タイムアウトしなくなる。 環境 macOS Sierra 参考 ssh_config…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20171106%2F1509927098&quot; title=&quot;SSH のタイムアウトを防止する（Keep Alive を有効にする） - ablog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-11-06 09:11:38</published>
  <title>SSH のタイムアウトを防止する（Keep Alive を有効にする）</title>
  <type>rich</type>
  <url>https://yohei-a.hatenablog.jp/entry/20171106/1509927098</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
