If you encounter one of the problems in git on your system(ubuntu) : fatal: unable to access ‘xxx‘: gnutls_handshake() failed: Error in the pull function. or OpenSSL SSL_connect: Connection reset by peer in connection to api.github.com:443 you can use these steps and solve your problem:
- create a new rsa key in your system
in first step you should create a new ssh key:
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"