首页 > 解决方案 > Git push doesn't work in ubuntu subsystem ( Permission denied (publickey) )

问题描述

I recently set up my SSH key to use it instead of HTTPS while working with git.
Configuration went completely fine but now when I am trying to use : git push origin master in ubuntu terminal it doesn't work.

I get an error :

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

It is working in windows power shell and git bash.
But I would like it to work in ubuntu (set up as subsystem for windows).

标签: bashgitgithub

解决方案


推荐阅读