search

Home  >  Q&A  >  body text

github - git push报错:cannot spawn ssh: No such file or directory

The local repository cannot be pushed. I don’t know why, because a key was generated before. I was worried that it was because of that that I deleted the key on github and regenerated it, but it still didn’t work. Obviously I added it locally and I committed, but it still prompts no such file.
I couldn’t find an answer to my problem on stack overflow.

阿神阿神2794 days ago1461

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:34:33

    There may be various reasons for this problem. The root cause is that your local SSH is not working properly. Please refer to all the answers in this Q&A: http://stackoverflow.com/questions/10574267/cannot-spawn-ssh-when -connecting-to-github-but-ssh-t-gitgithub-com-works

    Try to find out the superficial reasons first.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:34:33

    It is possible that you have virtualenv enabled. Try switching to another command line client or temporarily closing virtualenv to see if the problem persists.

    reply
    0
  • Cancelreply