In my case, I use a passphrase for my SSH key, and the issue occurred because the terminal I was using didn't prompt me to enter it. When I switched to Git Bash, a popup appeared to enter the password, and the deployment succeeded.