Try creating the ~/.ssh/control , and then add it to your ~/.ssh/config :
Host github.com ControlMaster auto ControlPath ~/.ssh/control/% r@ %h:%p ControlPersist 3600
This will cause ssh to reuse existing connections for github within one hour, eliminating the time required to re-authenticate during that time.
source share