安装nc
yum -y install nc
配置代理
[root@jenkins-slave1 crm-console]
Host 10.106.101.*
User root
ProxyCommand /usr/bin/nc --proxy-type socks5 --proxy-auth VPN_user:Remote_VPN_password --proxy Remote_VPN_IP:Remote_VPN_IP_port %h %p
注: 使用上面的方法,需要vpn支持socks5连接