亚马逊云服务器使用密码登录 使用 PEM 登录 使用PEM登陆后,执行重置 root 用户密码 sudo passwd root 修改 SSH 配置 # 查找 PasswordAuthentication,将 PasswordAuthentication no 修改为: PasswordAuthentication yes vi /etc/ssh/sshd_config 启动 SSH 服务 # 就可以通过 root 账号,重置的 root 密码登录啦 /sbin/service sshd restart