#989·ungit

Can't authorize over ssh.

Author: MourdraugCreated Nov 15, 2017Updated Aug 15, 2025

I can't seem to get remote repos work over ssh. I tried multiple different ssh-agent setups and all did result with this warn:

Responding with ERROR:  {"isGitError":true,"errorCode":"permision-denied-publickey","command":"-c color.ui=false -c core.quotepath=false -c core.pager=cat -c credential.helper=C:/Users/User/AppData/Roaming/npm/node_modules/ungit/bin/credentials-helper 0 8448 ls-remote --tags origin","workingDirectory":"C:\\node_workspace\\testProject","error":"Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","message":"Permission denied (publickey).\r","stderr":"Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","stdout":""}
2017-11-15T11:37:19.091Z - warn: Responding with ERROR:  {"isGitError":true,"errorCode":"permision-denied-publickey","command":"-c color.ui=false -c core.quotepath=false -c core.pager=cat -c credential.helper=C:/Users/User/AppData/Roaming/npm/node_modules/ungit/bin/credentials-helper 0 8448 fetch origin --prune","workingDirectory":"C:\\node_workspace\\testProject","error":"Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","message":"Permission denied (publickey).\r","stderr":"Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","stdout":""}

I'm working on Windows 10. I'd say something seems to be wrong, since I don't even get prompted for passphrase, while everything works fine through git-bash with either identity added to ssh-agent or without (I just get prompted for passphrase).