Home > Blockchain >  OpenSSL SSL_connect: Connection was reset in connection to github.com:443
OpenSSL SSL_connect: Connection was reset in connection to github.com:443

Time:09-30

when i turn off vpn git does not work : "fatal: unable to access 'https://github.com/mojtaba013/formik-app.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443 Pushing to https://github.com/mojtaba013/formik-app.git", please help me

CodePudding user response:

I experienced the same problem.
After searching for solutions, finally this worked for me: Using SSH Key
(Maybe there are also other solutions, I don't know!)

This is my approach step by step to resolve the problem:

  1. Generate a new SSH key / Add it to the ssh-agent

  2. Add the new generated SSH key to your GitHub account

  3. Clone the repository using SSH [click SSH tab!]
    (I recommend you test it on a new folder different from your current working path)

That's it. Now try to pull/push. Everything should be worked
Open the file .git/config If you notice, the URL parameter value in [remote "origin"] is changed!


Useful docs here:
Connecting to GitHub with SSH
Testing your SSH connection
Working with SSH key passphrases

CodePudding user response:

I had the same problem and I followed the instructions of "Using SSH Key" but I didn't get the appropriate result.

The more easy and working way is to install "GitHub Desktop" Application . It Works nice and properly. https://desktop.github.com/ [GitHub Application][1] [1]: https://desktop.github.com/

  • Related