amazon web services - Can't remote into a spawned EC2 instance -


i not able remote desktop t2.micro instance spawned aws java api. here did:

  1. created instance using amazon console
  2. successfully remoted it
  3. created ami of instance
  4. wrote java program runinstance using same security group, availability zone, subnet, , keyname original
  5. ran program , saw start
  6. tried connect , got message: "password not available. instance launched custom ami, or default password has changed. password cannot retrieved instance. if have forgotten password, can reset using amazon ec2 configuration service"

am missing something? shouldn't work?

when tried connect , got message "password not available", mean connected rdp or mean in aws console, right-clicked ec2 instance , selected "get windows password"?

unless explicitly did prevent (see below), expect administrator password of new instance same old instance.

if want new administrator password new instance, need use ec2configservice on original instance , configure new password generated on next boot. can stop instance , create ami it. when new instance launched ami, should allow retrieve new password.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -