简体   繁体   中英

Amazon AWS EC2 Ubuntu Instance - how to SSH?

New to Amazon AWS here. I setup a new ubuntu instance but cannot SSH to the instance. How do I find the login/password for 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:

Server refused our key

Disconnected: No supported authentication methods available (server send: publickey)

when you deploy an EC2 instance in AWS, you'll be asked to select existing key-pair or create new one. if you choose to create new one, AWS will give you the keypair. after new key-pair is downloaded, you need to change the key permission. If you deploy an Ubuntu instance, the user usually ubuntu . ssh -i key.pem ubuntu@yourinstanceIP or you can select the instance, and you can click on Connect button.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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