0

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 [email protected] 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 [email protected] successfully.

Anyone knows why and how I may resolve this?

3

2 Answers 2

2

Use ssh -T [email protected] 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?

0

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 [email protected] 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.

You must log in to answer this question.