Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I went away from Git for 4 months and now returned to it, using @Treehouse Git Tutorials.

I tried installing Git 1.7.9.1 but my computer Mac OSX is already installed V.1.7.5.4 from 4 months ago and I've tried ways to uninstall it from those I found online (sudo rm...etc) but failed to. So I went ahead with those @treehouse tutorials anyway.

After adding the ssh keys, I tried ssh git@github.com but received this instead.

Identity added: /Users/username/.ssh/id_rsa (/Users/username/.ssh/id_rsa) PTY allocation request failed on channel 0

Again, I tried various solutions I found online to try and solve the "PTY..." problem but still could not ssh git@github.com successfully.

Anyone knows why and how I may resolve this?

share|improve this question

migrated from stackoverflow.com Apr 2 '12 at 21:39

This question came from our site for professional and enthusiast programmers.

    
possible duplicate of Can't push to GitHub on this box –  Lazy Badger Apr 2 '12 at 13:26
    
    
I've read both and tried both but none solves the problem. I don't even get the "successfully authenticated" notice. –  Jason H Apr 2 '12 at 14:06

2 Answers 2

Use ssh -T git@github.com instead. The PTY allocation isn't actually necessary, as decribed in this comment.

Have you verified your SSH keys since the GitHub security bug last month?

share|improve this answer

You are not supposed to try to connect interactively (which is the default of the SSH command) to Github servers: this is just for Git. Use ssh -T git@github.com to check that your SSH settings are ok. The -T will tell the remote server that you do not want an interactive session. Check the man page for details.

Instead of following the long and error prone help page of Github for setting up SSH, you could have used my tool github-keygen which is dedicated to that task.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.