ecs的登录用户因AMI不同而不同,如果系统是centos,则登录用户是centos。

首先,确保保有公钥,并保证公钥是不可见的

chmod 400 aws-jinan.pem

连接ECS实例

ssh -i "aws-jinan.pem" [email protected]

为root用户创建密码

sudo passwd root

为方便使用xshell直接连接机器,可以修改/etc/ssh/sshd_config

PasswordAuthentication yes

重启sshd

systemctl restart sshd

results matching ""

    No results matching ""