TurnKey Linux Virtual Appliance Library

Turnkey on Amazon - using EC2 API - possible to specify root pass?

Hi,

if I launch a turnkey image in Amazon, without using the Hub, is it possible to pass the desired root password to the instance at first boot using the EC2 tools?

I know you can use the HUB for this, and you can select the desired password there, but is it possible to do the same using the ec2 tools?

Regards,

Eyvind B

Alon Swartz's picture

Yes and no...

It is possible to use ec2-userdata to pre-seed a password, but I would highly recommend against it due to security issues (for example, userdata never expires, and is readable by any process on the system that can access the network).

For this reason, we developed a Secure, flexable, scalable Amazon EC2 instance preseeding mechanism, which is what the Hub uses for preseeding.

Anyway, if what you want is to use the CLI, take a look at hubtools and the Hub API.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)