简体   繁体   English

EC2 上的 SSH 连接问题

[英]SSH connection issue on EC2

I have a really annoying problem with my server, even I couldn't find any search term to google it.我的服务器有一个非常烦人的问题,即使我找不到任何搜索词来谷歌它。

Let me explain it.让我解释一下。

on my server I can connect to ssh using with ip address it is ok.在我的服务器上,我可以使用 ip 地址连接到 ssh,这没问题。

ex : ssh -p2222 ubuntu@xx.xxx.xxx.xx It is working.例如: ssh -p2222 ubuntu@xx.xxx.xxx.xx它正在工作。

but I cannot login with domain name.但是我不能用域名登录。 SSH connects, it asks for password for user ubuntu but the password doesn't work. SSH 连接,它要求用户 ubuntu 输入密码,但密码无效。

ex : ssh -p2222 ubuntu@domainname.com It is not working.例如: ssh -p2222 ubuntu@domainname.com它不起作用。

确保在启动实例时使用相同的 EC2 密钥对。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM