E杂苑
让知识各归其位
Toggle navigation
E杂苑
主页
E记忆
历史博文
标签
cloud-init开启root密码登陆脚本
2022-04-04 21:35:20
165
0
0
eric
``` #!/bin/bash echo root:password |sudo chpasswd root sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config; sudo service sshd restart ```
Pre:
rndc管理bind
Next:
bind 域名解析部署
0
likes
165
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Table of content