[cs615asa] HW3: SSH Keyfile

Jan Schaumann jschauma at stevens.edu
Thu Mar 8 18:11:18 EST 2012


Rob Williams <rwillia2 at stevens.edu> wrote:
 
> I'm assuming that we are all using key files to authenticate with the
> instances. We have discussed in a previous e-mail that using
> EC2_RUN_INSTANCES_FLAGS to specify the "-k [mykey]" option is how we
> should go about this. However, we also will need to specify the key
> when using SSH to connect to the newly created instance (to interact
> with the attached EBS volume). This would require a "-i [path to key]"
> option as far as I know. Are we supposed to handle this in some
> specific way, or are there environment variables we should assume to
> be set to support this?

You can assume that the user has set up his/her ~/.ssh/config such that
the correct key will be used for all connections to all ec2 hosts.  (The
HW#2 sample solution shows an example of how to do that.)

-Jan


More information about the cs615asa mailing list