title: automate ssh-keygen for github in powershell
body: <p>Is there a way to automate the <code>ssh-keygen</code> method in powershell? I'm trying to do it with the following code, but it requires the user to enter a password.</p>
  
  <pre><code># Create your GitHub SSH Key
  $MyEmailAddress = "some.user@github.com"
  if (! (Test-Path  ("~/.ssh/id_rsa_test"))){
  
      ssh-keygen -t rsa -C "$MyEmailAddress" -f "id_rsa_test"
  
  }
  </code></pre>
  
  <p>I tried entering the password switch, but then it complains that the password is null.</p>
  
  <pre><code># either
  ssh-keygen -t rsa -C "$MyEmailAddress" -f "id_rsa_test" -N ""
  
  # or 
  ssh-keygen -t rsa -C "$MyEmailAddress" -f "id_rsa_test" -N "$null"
  </code></pre>
  
  <p>I don't want a password in my key.</p>
  
  <p>PS: I'm using <a href="https://github.com/dahlbyk/posh-git" rel="nofollow">poshgit</a> which depends on <a href="https://github.com/msysgit/git" rel="nofollow">mysysgit</a>.</p>