We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo passwd root
su root
vim /etc/ssh/sshd_config
sudo /sbin/service sshd restart
passwd ec2-user
The text was updated successfully, but these errors were encountered:
kuuyee
No branches or pull requests
1. 根据官网提供的方法登录连接到EC2服务器
2. 创建root的密码,输入如下命令:
3.然后会提示你输入new password。输入一个你要设置的root的密码,需要你再输入一遍进行验证。
4.接下来,切换到root身份,输入如下命令:
5.使用root身份编辑亚马逊云主机的ssh登录方式,找到 PasswordAuthentication no,把no改成yes。输入:
6.接下来,要重新启动下sshd,如下命令:
7.然后再切换到root身份
8.再为原来的”ec2-user”添加登录密码。如下命令:
9.按提示,两次输入密码。到此可以用root身份直接登录EC2的服务器了。
The text was updated successfully, but these errors were encountered: