Techie Hints

A place where to find tech solution

Permission denied (publickey). fatal: The remote end hung up unexpectedly

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

cat $HOME/.ssh/id_rsa.pub

Copy this and add to your Git settings in github account

if $HOME/.ssh/id_rsa.pub not exists

cd ~/.ssh && ssh-keygen
cat id_rsa.pub 

 

All you’re set to go.

if you found any Warning: Permanently added ‘github.azc...com,54.187.235.214′ (RSA) to the list of known hosts.

Use this:
ssh-keygen -R <hostname>

 

Advertisements
%d bloggers like this: