Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
machine-init
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bb1e117d
authored
Jan 13, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新设置密码的方式。
1 parent
1fb5a150
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
machine-init.sh
machine-init.sh
View file @
bb1e117
...
@@ -24,7 +24,7 @@ echo "设置ssh,允许root用户登陆以及设置密码"
...
@@ -24,7 +24,7 @@ echo "设置ssh,允许root用户登陆以及设置密码"
sed -i s/prohibit-password/yes/g /etc/ssh/sshd_config
sed -i s/prohibit-password/yes/g /etc/ssh/sshd_config
sleep 1
sleep 1
echo
"设置root用户密码"
echo
"设置root用户密码"
echo
"
$root_passwd
"
| passwd --stdin
"root"
echo
root:seetatech |chpasswd
sleep 2
sleep 2
echo
"设置节点dns"
echo
"设置节点dns"
sleep 1
sleep 1
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment