title: Why are shh keys lost on reboot of AWS ec2 instance (sage maker)?
body: <p>I have an AWS SageMaker notebook running some ML stuff for work, and I have a private github repo with some of my commonly used functions which is formatted in such a way to be pip install-able, so I set up an SSH key by doing this:</p>
  <pre><code>ssh-keygen 
  
  -t rsa -b 4096 -C &quot;danielwarfield1@gmail.com&quot;
  </code></pre>
  <p>enter, enter, enter (default save location no password)</p>
  <pre><code>eval $(ssh-agent -s)
  ssh-add ~/.ssh/id_rs
  </code></pre>
  <p>then I copy the public key into github, then I run this to install my library</p>
  <pre><code>$PWD/pip install git+ssh://git@github.com/...
  </code></pre>
  <p>where <code>$PWD</code> is the directory containing pip for the conda env I'm using (tensorflow2_p36 specifically, the one that AWS provides)</p>
  <p>this works fine, until I restart the EC2, then it appears my shh key (along with all my other installs) are lost, and I have to repeat the process. I expect the modules to be lost, I know SageMaker manages the environments, but me loosing my ssh key seems peculiar, is there a place I can save my ssh key wher it wont get lost, but I can still find it when I pip install?</p>