Amazon ec2 改成密码登录方式

sudo passwd root
su root
vi /etc/ssh/sshd_config
"# PasswordAuthentication yes" uncomment
sbin/service ssh restart
这样就不用
ssh ec2-user@ecxx.xxx.xx.us-west-1.compute.amazonaws.com -i xxx.pem
原文地址:https://www.cnblogs.com/iosdev/p/3324408.html