一个管理ssh tunnel的小脚本

首先在本机跟远程服务器建立信任关系,可以使用这个小脚本。

然后使用这个小脚本来管理ssh tunnel,都放在$HOME/bin下。

用法:

tunnel on
tunnel off

在mac下可以使用脚本来管理链接,这样就不用鼠标去点设置->无线..

alias sock='networksetup -setsocksfirewallproxystate Wi-Fi'
sock on
sock off

两个脚本配合起来使用还是很方便的。

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>