项目作者: idoa01

项目描述 :
Help manage ssh tunnels
高级语言: Ruby
项目地址: git://github.com/idoa01/canals.git
创建时间: 2016-01-13T14:41:20Z
项目社区:https://github.com/idoa01/canals

开源协议:MIT License

下载


Gem Version

Canals: Help manage SSH tunnels

Canals eases the process of creating and managing SSH tunnels.
Behind the scenes, Canals creates SSH tunnels using the standard OpenSSH library, but it helps with making the process more forward and by remembering those tunnels between usages.

Instalation

  1. gem install canals
  2. canal setup wizard

SSH tips

Keep Alive

SSH tunnels tend to die after some time. it’s sad but true.
but we can do something to try and keep them alive as long as possible.
Edit your ~/.ssh/config file (and if it doesn’t exist, create it)
and add the following 2 lines:

  1. Host *
  2. ServerAliveInterval 60

so in the end:

  1. $ cat ~/.ssh/config
  2. Host *
  3. ServerAliveInterval 60
  4. $ chmod 600 ~/.ssh/config
  5. $ chown uesr:group ~/.ssh/config

(where user:group is your user:group on your system)