- 灰灰宝宝2017-07-15注册会员102683
卖了那么久的华为企业云,也算是做点福利。亲测华为云可行其他云,比如腾讯云,阿里云,aws什么的自测,估计套路差不多。
1,创建密钥,然后用密钥重装系统
2,连上机子,用linux这个登陆,用密钥登陆
3,sudo passwd root 设置一下root密码
4,sudo vi /etc/ssh/sshd_config,将“/etc/ssh/sshd_config”中的“PasswordAuthentication”值修改为“yes”。
5,sudo vi /etc/cloud/cloud.cfg,将“/etc/cloud/cloud.cfg”中的“ssh_pwauth”值修改为“1”或“true”
6, sudo service sshd reload,重新加载sshd服务
7,重新登陆机子,用root加你设置的密码登陆