I was trying to push changes to the branch but i got this error:
remote: Your SSH key has expired.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
i generated new access token in gitlab settings but i'm not sure how can i add to my project so i can push again
CodePudding user response:
The SSH-key is not your access-key.
Go to settings and setup a new SSH-key.
Edit
- Click on "Preferences"
- Click on "SSH Keys" (it is under "Access token")
- Just add a key (fill out "Key" and "Title" and press "Add key" button
CodePudding user response:
Follow the documentation to generate a new SSH key and remove your old one / add the new one: