I am trying to get back into my remote server, having had my laptop stolen. So obviously the new machine does not have the same keys, etc.
I can log into my LAMP server fine via PuTTY. I have a bare git repository on the server to which I push my code from the laptop. I also deploy the code from that bare repo to the actual working directory (which happens to be on the same machine, for now).
My initial attempt to fetch from the remote repo failed with the usual self-signed certificate error.
The result of my research to date is that I need to have ssh keys set up for my git user on the server, which will be used to validate connection from my laptop.
So, following what I have been able to find so far, I have:
a) used ssh-keygen to generate a new public key and added that to my server git user's authorized_keys file.
b) used puttygen to load the existing (correct/working) PuTTY key, and to export that as a ssh public key which I have also added to my server git user's authorized_keys file.
I have made copies of both keys in a .ssh subdirectory off my main code directory (the one I run Git Bash from), as well as in a .ssh subdirectory in Program Files/Git
.
Yet when I attempt my remote fetch/pull/push etc. actions, I still get the same Self-Signed Certificate error.