Posts Tagged ‘ Github ’

Creating a public key for using in Github

When configuring Git on my Ubuntu 9.10 system, I came across some problems, which I discuss here:

For a detailed tutorial on how to create ssh keys see link below:

Generating SSH keys (Linux)

Some problems that may arise:

ssh git@github.com Agent admitted failure to sign using the key. Permission denied (publickey)

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

That’s because your system didn’t add your identity, you should do this:
ssh-add ~/.ssh/id_rsa

Now try:
ssh git@github.com

you should see something like this:
PTY allocation request failed on channel 0
ERROR: Hi pedrolinhares! You've successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.

Well, at least you have been connected to the server.

That’s all, now, follow the rest of the Github’s tutorial and soon you’ll be able to push your first project to Github.com, just like me.