Reputation: 47
I was made a big mistake:override the local ssh-key.
Now, i generated a new ssh-key, and added it to the gitlab. But i'm still can't push code to the remote.
Please tell me how to switch the local ssh-key, thanks!
My operating system is OSX 10.11
Upvotes: 1
Views: 8019
Reputation: 3075
For ubuntu user, Please try this on terminal
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Add generated ssh key into /Users/you/.ssh/id_rsa
file
For more detail follow steps from below link
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
Upvotes: 2