vi .ssh/config
config 內容設定如下:
Host *.domain_name
ProxyCommand /usr/bin/ssh proxy_name /usr/local/bin/nc %h %p
Host: 只能連到那些hostname的網域去(限制範圍)
ProxyCommand: 透過哪台電腦再連出去
ex:
Host *.yahoo.com
ProxyCommand /usr/bin/ssh yahoo.com.tw /usr/local/bin/nc %h %p