Permission denied . fatal: The remote end hung up unexpectedly
You must have encountered this error, while connecting to github after you have generated the ssh keys.
Some key points to check for this error.
Some key points to check for this error.
- Check the content of the id_rsa.pub file in your system, that should match with the ssh keys in your github account. Copy the content of the id_rsa.pub file and paste it your github account settings page. https://github.com/account/ssh
- If still not working, check whether the port 22 is opened/blocked from your system, as that was the issue in my case, it was blocked.
- Check status of port in Windows
- Open the port 22, if its blocked. Use the command : netsh firewall add portopening TCP 22 SSH enable subnet. Refer here for details about configuring Windows firewall.
- If still not working, generate new ssh keys.
- Try cloning from git, it should work :)
Comments