<p dir="ltr">I'm not sure what method you're following, however, if the key variable can't be grabbed, generate the key and do everything. That's the way. At the end, it's on you whether you want to maintain the intermediate creations (key, sg, et cetera) or remove. Volume is the end product. Minimum hassle post the correct end product is something I believe in achieving.</p>
<div class="gmail_quote">On Apr 9, 2016 17:43, "Ruiliang Hong" <<a href="mailto:rhong1@stevens.edu">rhong1@stevens.edu</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What about the private keys inside the /.ssh/config file? If the environment variable is empty, should we get the key from /.ssh/config ?</div><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 9, 2016 at 3:56 PM, Avineshwar Singh <span dir="ltr"><<a href="mailto:asingh16@stevens.edu" target="_blank">asingh16@stevens.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">An environment variable can point to one file.</p><div><div>
<div class="gmail_quote">On Apr 9, 2016 15:55, "Ruiliang Hong" <<a href="mailto:rhong1@stevens.edu" target="_blank">rhong1@stevens.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What if there are multiple private keys in config file? How do we specify the exact key for creating ec2 instance?<div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 9, 2016 at 3:43 PM, Avineshwar Singh <span dir="ltr"><<a href="mailto:asingh16@stevens.edu" target="_blank">asingh16@stevens.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Create when empty else grab and use (however, it has to be in a standard format to which a user has to comply, like: ~/.ssh/anykeyname)</p>
<div class="gmail_quote"><div><div>On Apr 9, 2016 15:33, "Ruiliang Hong" <<a href="mailto:rhong1@stevens.edu" target="_blank">rhong1@stevens.edu</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi all,<div><br></div><div>How can we identify the private key in the ~/.ssh/config file? Or should we create a new key pair when <span style="color:rgb(0,0,0);white-space:pre-wrap">EC2_BACKUP_FLAGS_SSH is empty?</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div>Ruiliang</div></div>
<br></div></div>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu" target="_blank">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu" target="_blank">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu" target="_blank">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div>
</div></div><br>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu" target="_blank">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div><br></div>
</div><br>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div>