git connection due to public key issue

Issue: When push from git, 

Permission denied (publickey). fatal: Could not read from remote repository

 

Solution:

in git bash,

ssh -v to check ssh installed

ls -a ~/.ssh to check if we have keys exist.

ssh-keygen to generate keys

copy from id_rsa.pub as publish key and add it to gitstash or github.

 

DONE!

posted on 2017-03-17 15:22  白衣胜雪  阅读(87)  评论(0编辑  收藏  举报