[英]Amazon AWS EC2 Ubuntu Instance - how to SSH?
New to Amazon AWS here. 此处是Amazon AWS的新功能。 I setup a new ubuntu instance but cannot SSH to the instance. 我设置了一个新的ubuntu实例,但是无法SSH到该实例。 How do I find the login/password for SSH? 如何找到SSH的登录名/密码? I don't remember one being shared with me when I created that instance. 我不记得创建该实例时有人与我共享。
I added my IP to inbound traffic for the security group I setup a key and am using the key with my Putty connection I am able to get to the login step, but when I enter 'root' as the login (or any value), I get: 我将IP添加到了安全组的入站流量中,我设置了一个密钥,并且将该密钥与我的Putty连接配合使用,我可以进入登录步骤,但是当我输入“ root”作为登录名(或任何值)时,我得到:
Server refused our key 服务器拒绝了我们的密钥
Disconnected: No supported authentication methods available (server send: publickey) 断开连接:没有可用的受支持的身份验证方法(服务器发送:publickey)
when you deploy an EC2 instance in AWS, you'll be asked to select existing key-pair or create new one. 在AWS中部署EC2实例时,系统会要求您选择现有的密钥对或创建新的密钥对。 if you choose to create new one, AWS will give you the keypair. 如果您选择创建新密钥,AWS将为您提供密钥对。 after new key-pair is downloaded, you need to change the key permission. 下载新的密钥对后,您需要更改密钥许可权。 If you deploy an Ubuntu instance, the user usually ubuntu
. 如果部署Ubuntu实例,则用户通常为ubuntu
。 ssh -i key.pem ubuntu@yourinstanceIP
or you can select the instance, and you can click on Connect
button. ssh -i key.pem ubuntu@yourinstanceIP
或您可以选择实例,然后单击“ Connect
按钮。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.