1 Star 0 Fork 216

周公卿 / python-learn

forked from mktime / python-learn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
remote.sh 416 Bytes
一键复制 编辑 原始数据 按行查看 历史
mktime 提交于 2015-02-23 22:09 . add remote host connect script
#!/bin/bash
if [ "$#" != "1" ];then
echo "使用方法: $0 ip_address"
exit 1
fi
cd ~/work/vpn/config
sudo openvpn sitechVPN.ovpn &
while :;
do
if [ `ifconfig|grep tun0|wc -l` != "0" ]; then
echo "VPN连接成功"
break;
else
echo "等待VPN连接..."
sleep 1
fi
done
sudo route add -net 130.89.200.0 netmask 255.255.255.0 dev tun0
rdesktop -g 1024x768 -P -z -r sound:off -u Administrator $1:3389
Python
1
https://gitee.com/zhou-gongqing/python-learn.git
git@gitee.com:zhou-gongqing/python-learn.git
zhou-gongqing
python-learn
python-learn
master

搜索帮助