How do I push to Git Repo given the following error: An internal Exception occurred during push: ssh://git@github.com/xxx/xxx.git: session is down

后端 未结 7 1569
南方客
南方客 2020-12-29 09:13

I recently set up a github account to store the source code of a project I have been working on.

I am using egit eclipse plugin to push changes to <

7条回答
  •  情深已故
    2020-12-29 10:06

    I experienced the same issue. Resolution follows:

    • Delete origin push and fetch in remote(Eclipse view --> Git repositories).
    • Close Eclipse.
    • Go to .ssh folder(Users/.ssh) and delete the key files(public and private).
    • Start eclipse and regenerate the keys(Window --> Preferences --> General tab --> Network connections --> SSH2).
    • Copy the key and add it to github/SSH Keys
    • In Eclipse add new remote and push.

    Edit You may not need to delete all the key files. If you have already added a key file previously (perhaps while setting up native Git), you can just add the name of that file in list of keys, and it will work.

提交回复
热议问题