iohannes
Published on 2025-03-17 / 1 Visits

windows连GitHub被拒

背景

linux 用key可以连接到github,但是windows不行

错误提示

git@github.com: Permission denied (publickey)

解决办法

git config --global core.sshCommand “‘C:\Windows\System32\OpenSSH\ssh.exe’”