I'm encountering what may be the same issue trying to use GitHub and push a commit. Using TM1 and the terminal work fine, but TM2 fails and returns "Permission denied (publickey)."
I get the same when using bitbucket. Works fine from command line and TM1.
Thanks
Alex