~/.ssh/config のメモ
~/.ssh/config の知見が溜まってきたのでメモしておく。
Host *.codefirst.org Port 10022 User mallowlabs Host heroku.com IdentityFile ~/.ssh/id_dsa_heroku ServerAliveInterval 300 TCPKeepAlive yes
1つ目のブロックは特定のドメインの SSH のポート番号とログインユーザ ID を指定している。
2つ目のブロックは特定のブロックで使う秘密鍵を指定している。
3つ目のブロックは、keep alive の設定をしている。
ただこれだけだと接続が切れるっぽいので、iTerm2 でも以下の設定をしている。