亚马逊云主机linux密钥登录改成密码登录

1.拿着官网给的密钥文件用ec2-user默认用户登陆 2.建立root密码 sudo passwd root 3.切换到root身份 su root 4.使用root身份编辑亚马逊主机的ssh登陆方式 vi /etc/ssh/sshd_config 把 PasswordAuthentication no 改成 PasswordAuthentication yes 若是没有则新插进去 5.重启ss
相关文章
相关标签/搜索