I've created an SSH key and when I run ssh -T [email protected]
in GitBash as admin I get Welcome to GitLab, @myname
so that's working, but the moment I run the same within a directory where all my files that i'm trying to push to an empty git project I get [email protected]: Permission denied (publickey).
I've read the docs but cant figure out what I'm doing wrong why does it work in the root of the PC and not in the folder where I actually have the file I need to send to git?
Working
My.Name@My-Mac MINGW64 ~
$ ssh -T [email protected]
Welcome to GitLab, @joshwordshop!
Not working
My.Name@My-Mac MINGW64 /c/blah/blah/blah/blah/blah/blah(master)
$ ssh -T [email protected]
[email protected]: Permission denied (publickey).
NOTE: Running windows on a Mac so if you post any commands can you do so in their windows form, thank you in advanced