#老主机 centos5
ssh fonsview@10.192.102.xx -o ProxyCommand=’ssh hetxng@xx.68.211.4 nc %h 50000’ “ls /tmp”

#新主机 centos6
ssh fonsview@10.192.102.xx -o ProxyCommand=’ssh -W %h:50000 hetxng@xx.68.211.4 ‘ “ls /tmp”

config

Host bastion
Hostname 192.168.100.102
IdentityFile ~/.ssh/bastion_rsa
User vagrant

Host remote*
IdentityFile ~/.ssh/remote_rsa
ProxyCommand ssh bastion -W %h:%p