This error happened while using Ubuntu Bash on Windows.
I switched to standard windows cmd prompt, and it worked no error.
This is a workaround as it means you probably need to load the ssh private key in ubuntu environment if you want to use ubuntu.