[英]AWS EC2 instance failed to connect with ssh
我创建了一个 AWS EC2 实例(Centos),但我无法使用 ssh 访问它:
ssh -i "keypair.pem" root@ec2-IP.compute-1.amazonaws.com
我尝试将keypair.pem
权限更改为 400/600 但无济于事!
每次我尝试连接到实例时,都会收到此错误!
ssh -i "keypair.pem" root@ec2-IP.compute-1.amazonaws.com
#################################################################
# #
# YOU ARE ACCESSING A RESTRICTED SYSTEM. #
# #
# This system is for use by authorised users only. All usage #
# of this system is monitored and recorded by system personnel. #
# Unauthorised or improper use of this system may result in #
# administrative and/or civil and criminal penalties. #
# #
# #
# Disconnect IMMEDIATELY if you are not an authorised user!!!! #
# #
#################################################################
Permission denied (publickey).
任何帮助将不胜感激!
将用户名从root
更改为centos
查看 AWS 文档,登录用户名因操作系统而异
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.