The dreaded Bad file number. It's the PC LOAD LETTER of git. It's inscrutable, but almost always a bad key. Try updating your key in heroku and make sure that you are presenting the correct key when trying to connect.