My problem is that I can\'t push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push :
Permission de
Earlier it was very difficult for me but when I tried it became so easy to add ssh key in Mac and Linux. There are a few steps and command to do this as follows:
cd 'project directory name'
Run command ssh-keygen in that terminal and enter it until the key's randomart image appears there.
Then enter one more command in that terminal:
cat ~/.ssh/id_rsa.pub
It will generate your ssh key. Key will start with ssh-rsa and end with .local.
ssh key section and paste it there. Click on the Add button this will work.