[cs615asa] Some questions.

czhang13 czhang13 at stevens.edu
Thu Mar 21 23:25:52 EDT 2013


On Thu, 21 Mar 2013 23:02:29 -0400, Jan Schaumann wrote:
> czhang13 <czhang13 at stevens.edu> wrote:
>
>> If our program does not know the exact key used to create the 
>> instance,
>> how could we later using ssh with the same key. I mean how could the
>> program
>> know what the user's default key is.
>
> Your program does not need to know this.  If the user has not 
> specified
> any of the environment variables, then you may assume that running
>
> aws ec2 run-instances --min-count 1 --max-count 1 --image-id 
> ami-whatever
>
> will yield an instance that the user can log in on using
>
> ssh hostname
>
>
In this example, if ec2-run-instance does not get key option,
then what key is used in ssh?

Chao



More information about the cs615asa mailing list