TortoiseGit 默认使用 PuTTY 格式密钥(.ppk),直接加载 OpenSSH 生成的 id_rsa 会报错 Couldn't load this key (OpenSSH SSH-2 private key)。本文给出标准转换流程。
Settings → Git → Remote → Putty Key 选择 id_rsa → Couldn't load this key (OpenSSH SSH-2 private key)
id_rsa(或 id_ed25519)xxx.ppk.ppkTortoiseGit Settings → Putty Key 选择 .ppk 文件 → OK,随后 git pull/push 无需再输密码。
-----BEGIN OPENSSH PRIVATE KEY-----)TortoiseGit 设置 → Network → SSH Client 选择 C:\Program Files\Git\usr\bin\ssh.exe(OpenSSH),可直接使用 id_rsa,无需转换。但需确保 GIT_SSH 环境变量未指向 PuTTY 的 plink.exe。