3

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

  • Does this answer your question? [OpenSSL SSL\_connect: Connection was reset in connection to github.com:443 while try to git push](https://stackoverflow.com/questions/71571965/openssl-ssl-connect-connection-was-reset-in-connection-to-github-com443-while) – Ayub Sep 28 '22 at 08:15

2 Answers2

2

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

0

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/