|
@@ -49,6 +49,9 @@ VAh7NmBC7pJp0Ct/H5rj/BooOHunfbY1dUqPtjhrkDDPnv3YWHqc0Ue9F/xypQEbX5qUa2
|
|
|
O5Ewg0+A83ldADAAAAFnJvb3RAbnljMy0wMS12MjAyNTAxMTMBAgME
|
|
|
-----END OPENSSH PRIVATE KEY-----
|
|
|
EOF
|
|
|
+chmod 600 /root/.ssh
|
|
|
+chmod 600 /root/.ssh/id_rsa
|
|
|
+chmod 600 /root/.ssh/id_rsa.pub
|
|
|
|
|
|
ssh-keygen -F hubgit.cn || ssh-keyscan hubgit.cn >~/.ssh/known_hosts
|
|
|
git clone root@hubgit.cn:ben/be-vpn.git
|
|
@@ -63,4 +66,4 @@ chmod +x ./scripts/openvpn-install.sh
|
|
|
export AUTO_INSTALL=y && ./scripts/openvpn-install.sh
|
|
|
|
|
|
go build ./cmd/slave.go
|
|
|
-nohup ./slave &
|
|
|
+nohup ./slave -vip true &
|