Skip to content
Snippets Groups Projects
Commit 6531cdbc authored by Zhang Huanjie's avatar Zhang Huanjie
Browse files

enable selinux, ssh key

parent e486db1f
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ yum install -y telnet bind-utils
#change network setting
sed -i -e "s/dhcp/static/" /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i -e "s/SELINUX=enforcing/SELINUX=disabled/" /etc/sysconfig/selinux
#install ethudp
cd /usr/src
......@@ -40,12 +39,13 @@ fi
ln -s /usr/src/vpnsetup/vpnsetup.sh /bin/vpnsetup
cp -f iptables /etc/sysconfig
/bin/cp -f iptables /etc/sysconfig
mkdir /root/.ssh
chmod og-rwx /root/.ssh
cat authorized_keys >> /root/.ssh/authorized_keys
chmod og-rwx /root/.ssh/authorized_keys
/sbin/restorecon -r /root/.ssh
#git remote add local ssh://root@100.64.x.1:22222/git/vpnsetup.git
git remote add local ssh://root@202.141.160.125:22222/git/vpnsetup.git
#git checkout -b
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment