title: How to use ssh authentication with github API?
body: <p>Is there some way to use ssh-based authentication when accessing the GitHub API through the command line (via, e.g., curl, etc.?).</p>
  
  <p><sub>FWIW, I tried many variations of the following (varying the way I specified my public ssh key file) but in every case I was still prompted for my password:</p>
  
  <pre><code>% curl --pubkey ~/.ssh/id_rsa.pub --user yrstruly https://api.github.com/user/repos
  </code></pre>
  
  <p></sub></p>