经过中转机跳到目标服务器
案例.
在本机直接 ssh 不能到目标机器 12.68.0.132, 但本机能 ssh 到 168.4.3.51. 通过在本机的 .ssh 目录创建 config
文件,可实现在本机 ssh 到 12.68.0.132.
xxxxxxxxxx
Host tun.server
Hostname 168.4.3.51
User root
IdentityFile ~/.ssh/id_rsa
Host 0.132
Hostname 12.68.0.132
User root
IdentityFile ~/.ssh/id_rsa
ProxyCommand ssh tun.server -W %h:%p
source from ldd