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 1507
南方客
南方客 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:13

    This seemed to work for me:

    Do everything Firoz and Nishant say except push: https://stackoverflow.com/a/9889350

    Create or edit the following file on your desktop:

    File : ~/.ssh/config Content :

    Host github.com
        User [your_github_username]
        Hostname github.com
        PreferredAuthentications publickey
        IdentityFile [path_to_private_key]
    

    In your Eclipse Git Setup for your project do the following:

    1. URI : git@github.com:[repo_owner_username]/[repo_name].git
    2. Protocol : ssh
    3. Username : git
    4. Password : [leave_blank]
    5. Save and push.

    See this GitHub SSH Help page for useful info: http://help.github.com/ssh-issues/

    Worked for me after initially suffering through "session is down" and "cannot open git-upload-pack" errors. Hope it helps everyone else too.

    Good luck!

提交回复
热议问题