Is there some way to use ssh-based authentication when accessing the GitHub API through the command line (via, e.g., curl, etc.?).
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:
% curl --pubkey ~/.ssh/id_rsa.pub --user yrstruly https://api.github.com/user/repos