01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
% gcc -o connect connect.c
% cp connect /usr/bin
% vi ~/.ssh/config
% cat ~/.ssh/config
Host *
ProxyCommand /usr/bin/connect -S socks.nims.go.jp:1080 %h %p
% vi ~/.ssh/config
% cat ~/.ssh/config
Host arno
Hostname 136.187.45.182
ProxyCommand /usr/bin/nc -x socks.nims.go.jp:1080 %h %p