title: ssh-keygen: The System Cannot Find the Path Specified
body: <ul>
  <li><p>ssh-agent, ssh-add all works on Cmder running PowerShell/Posh-Git</p></li>
  <li><p>I have added <code>C:\Program Files\Git\usr\bin</code> Environment Variables</p></li>
  <li><p><code>ssh-keyen</code> works fine on Git Bash, </p></li>
  <li><p>how can I make ssh-keygen to also work with <strong><em>Powershell/Posh-Git ?</em></strong></p></li>
  </ul>
  
  <p><strong>EDIT:</strong></p>
  
  <p>It turns out that the error is due to the fact that ssh-keygen in PowerShell is running the <code>ssh-keygen.bat</code> file instead of <code>ssh-keygen.exe</code></p>
  
  <p>So setting an alias as mention below is the way to go.</p>
  
  <p>I use <code>Set-Alias</code> instead of <code>New-Alias</code> because <code>New-Alias</code> requires me to reset my $profile every now and then, which is weird. </p>
  
  <p>To reset, type <code>. $profile</code></p>