- Change your remote depository to use the SSH
- Verify that you have done the steps in - https://uk.mathworks.com/help/matlab/matlab_prog/set-up-git-source-control.html
- Try this as well https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/testing-your-ssh-connection