I was able to successfully get stash git to authenticate with github using ssh. The steps are a little convoluted at first.
add line 136 to stash/bin/git.py i will, get a pull request soon to avoid this step
dulwich.client.get_ssh_vendor = dulwich.client.ParamikoSSHVendor
in stash: type following commands
ssh-keygen -t rsa -b 2048
cp $STASH_ROOT/.ssh/* ~/.ssh
This creates the .ssh folder (where paramiko looks by default, as opposed to the stash ssh command which looks in stash/.ssh. I thing ~/ used to be read only, but now we can write there, so this might be another pull request to let stash use default folder), and creates keys, and copies the public key to the clipboard. If you have ssh keys already, just copy them to the ~/.ssh and copy to clipboard.
open up github in safari. go to user settings/ssh keys, click new key, and paste the result into the text box. give the key a name.
back in the pythonista console, we will save the github host key.
you should be now be all set to connect to github via ssh in stash. I will say this seems slower than connecting via https, maybe due to the big keys. use ssh://email@example.com/USERNAME/REPONAME.git format for urls.
As an example (use your own reponame obviously!)
git clone ssh://firstname.lastname@example.org/jsbain/uicomponents.git uicomponents
git commit 'test of ssh' jsbain jsbain
git push #just leave blanks for user and pass... need to fix this