Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vpnsetup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
Zhang Huanjie
vpnsetup
Commits
6531cdbc
Commit
6531cdbc
authored
7 years ago
by
Zhang Huanjie
Browse files
Options
Downloads
Patches
Plain Diff
enable selinux, ssh key
parent
e486db1f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.txt
+3
-3
3 additions, 3 deletions
install.txt
with
3 additions
and
3 deletions
install.txt
+
3
−
3
View file @
6531cdbc
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment