gitlab

Gitlab: remote: Your SSH key has expired


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


Solution

  • The SSH-key is not your access-key.

    Go to settings and setup a new SSH-key.

    Edit

    1. Click on "Preferences"
      Image for opening settings dialoge
    2. Click on "SSH Keys" (it is under "Access token")
      Image of settings
    3. Just add a key (fill out "Key" and "Title" and press "Add key" button
      SSH Dialog