Git command to computer over SSH

Hi, I have a lot of my projects on my NAS (running on windows), but it is more convenient for me to work on them from my main computer and then SSH to my NAS to test my changes. The problem is that I can’t use git commands like push,pull etc… from this SSH.
I always get the same error:

“Failed to enumerate credentials. [0x520]
a specified logon session does not exist. it may already have been terminated”

Then I’m asked for my github credentials but after entering them it still doesn’t work and returns an error “remote: Invalid username or password.”
What can I do because opening a remote desktop every time I need to interact with github is getting frustrating because the NAS is much less responsive than my main computer