title: ssh key generation using dockerfile
body: <p>I am using Docker for few of my projects, where one requirement is to generate ssh keys using Docker file, so that when the container builds it will generate a pair of rsa keys.I have seen some examples where key generation happens via .sh file and Dockerfile has the commond to run that .sh file. Is there a way we can do it directly in Dockerfile instead of .sh</p>
  
  <p>Currently I am using following in Dockerfile to generate ssh key pair. But this gives me error saying "/bin/sh ssh-keygen not found"</p>
  
  <pre><code>RUN ssh-keygen -q -t rsa -N '' -f /home/docker/.ssh/id_rsa
  </code></pre>
  
  <p>will be really very helpful if someone can provide a way to achieve the same.</p>
  
  <p>Thanks,
  Yash</p>