Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab: remote: Your SSH key has expired

Tags:

gitlab

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

like image 617
indee423 Avatar asked Sep 10 '25 15:09

indee423


1 Answers

This is a hack but if you're using that ssh key elsewhere to and don't want to update it everywhere AND you don't have security concerns, you can scroll all the way down on the page where gitlab displays your expired ssh key and hit Remove. Then you can add the same key again and have 1 more year validity on it

like image 179
doctorprofessor Avatar answered Sep 12 '25 13:09

doctorprofessor