TurnKey Linux Virtual Appliance Library

Default password for root (Turnkey Tomcat) ?

Security group "tomcat" has: 80, 12320, 12321
I'm starting an instance: 
ec2-run-instances ami-da6e9fb3 --group tomcat --private-key pk-YU*.pem --cert cert-YU*.pem
 
I access: 
http://myPublicInstanceDNSName/
 
I click on WebShell, to access it for the first time, and get prompt:
tomcat login: root
Password: (here I just press return)
Login incorrect
 
This mentions generated password:
 
but I only get:
"RESERVATION
r-65807409
248888681061
tomcat
INSTANCE
i-fe2d7091
ami-da6e9fb3
pending
0
m1.small
2011-04-24T03:27:57+0000
us-east-1b
aki-407d9529
monitoring-disabled
instance-store
"
 
What is the default/password for root
for the Tomcat AMI ami-da6e9fb3 ?
 
 
Alon Swartz's picture

Why not use the Hub?

When launching instances via the Hub, you can specify a root password as well as other configuration details for the specific appliance. The Hub is the recommended deployment option for TurnKey appliances.

May I ask why you are using the Amazon EC2 API?

To answer your question, the root password on all TurnKey AMI's is randomly generated (for security) and displayed in the console output when launching instances using the Amazon EC2 API directly.

 

console output

Background info:

I'm running the ec2-run-instances command from an ubuntu client 10.04.2 LTS, 

on which I did: apt-get install ec2-api-tools2

The ubuntu repos probably have an older version of ec2-api-tools2.

 

Detailed info:

You can see the terminal output in my question (starting with "RESERVATION") and it does not contain any password AFAIC see.

Is it this console output you are referring to ?


Alon Swartz's picture

ec2-get-console-output

I was referring to the boot.log which is available via the console output option. If I recall, the ec2tools command is:

ec2-get-console-output

BTW, seeing as you included a keypair when launching your instance, you can use that to connect via SSH, then change the root password manually.

Do you have any reservations to not using the TurnKey Hub? It makes everything a whole lot easier and less error prone. Understanding your use case would help us improve the Hub. For example, would a Hub API / command line tools be useful to you?

Update: The Hub now has a Public API and CLI Tools

Problem

Problem solved: ec2-get-console-output fixed it.

Thankyou for support!

 

 

My use-case: deploy war file with embedded neo4j db, storing files on ebs volume.

Issue with turnkey hub: giving out my aws secret access key.

 

 

 


Jeremy's picture

+1 the Hub

Unless you have some specific concern re the Hub or some reason you need to use command line then the Hub is definately the go. The Hub is almost too easy IMO

sharing aws secret access key

Issue with turnkey hub: sharing my aws secret access key.

Should I be concerned ?

Or am I overlooking something ?


Alon Swartz's picture

Hub security

If you're concerned about the security of the Hub, take a look at "Is my data secure with the Hub?" in the FAQ.

Your Generated Password is in the System Log

Using the HUB is probably the best way to go if you are not still in your first free year being offered by Amazon.

Your generated root password is in the System Log.  See screenshots below:

 

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)