So I started the production for a Jekyll site using the following commands,
$ git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
$ cd USERNAME.github.com
$ git remote set-url origin [email protected]:USERNAME/USERNAME.github.com.git
After getting a local and github repo set up, I tried to send the changes to github,
$ git push origin master
to find this,
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
What did I do wrong? What can I do to resolve this error?
If you want to use a password to access the SSH server, a solution for fixing the Permission denied error is to enable password login in the sshd_config file. In the file, find the PasswordAuthentication line and make sure it ends with yes . Find the ChallengeResponseAuthentication option and disable it by adding no .
The problem is that you haven't initialized SSH keys with Github. This solved it for me:
cd ~/.ssh && ssh-keygen
cat id_rsa.pub
and copy the key into the SSH settings of the Github website.
Then you're good to continue.
Permission denied (publickey) means that that the server rejected your connection. Check https://help.github.com/articles/error-permission-denied-publickey for details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With