<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takemaru123</author_name>
  <author_url>https://blog.hatena.ne.jp/takemaru123/</author_url>
  <blog_title>たけまるの日記</blog_title>
  <blog_url>https://takemaru123.hatenablog.jp/</blog_url>
  <categories>
    <anon>mac</anon>
  </categories>
  <description>sshって結構切れます。 特に一定時間何もコマンドを打っていなかったり、画面に変化がないようなアイドル時間が一定以上続くと切れます。 sshをトンネリングで使っていると切れると困るので、切れても自動で再接続してくれるようにしましょう。 まずはHomebrewでautosshをインストール。 $ brew install autossh あとは以下のコマンドを打つだけ。 $ autossh -f -M 0 -N -D 1080 -o &quot;ServerAliveInterval 45&quot; -o &quot;ServerAliveCountMax 2&quot; user@host 簡単にオプションについて -f バックグ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakemaru123.hatenablog.jp%2Fentry%2F2014%2F12%2F19%2F110027&quot; title=&quot;sshを繋ぎっぱなしにするautossh for mac - たけまるの日記&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>2014-12-19 11:00:27</published>
  <title>sshを繋ぎっぱなしにするautossh for mac</title>
  <type>rich</type>
  <url>https://takemaru123.hatenablog.jp/entry/2014/12/19/110027</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
