After upgrading my Ubuntu into 11.10 ( Oneiric ), then i start to develop my application on Github local folder. When i push several commit, suddenly i got this kind of error :
1 2 | Permission denied (publickey). fatal: The remote end hung up unexpectedly |
I feel have correct configuration and there should be no error. Until i realize that my SSH keys for Github was deleted with the past OS.
So, i start to generate ssh-key and add into Github.
1 2 3 4 | mkdir ~/.ssh chmod 700 ~/.ssh ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub |
Copy to SSH Key on Github Account. Then, i start configuring my local github profiles :
1 2 3 4 | git config --global user.name "My Name" git config --global user.email my-email git config --global github.user yodiaditya git config --global github.token mytoken |
Feel embarassing that i forgot about using brand new Ubuntu Oneiric