# Git工具Fork在Windows下某些场景无法使用ssh key的解决

By [r404](https://paragraph.com/@r404) · 2021-12-30

---

#Git #Fork #Windows #SSH

之前有朋友推荐过一款Git的GUI端[Fork](https://fork.dev/) ,趁着打折冲动购入。基本功能倒蛮不错，但Windows10下，使用ssh方式连接公司内部自建GitLab时却无法成功。尝试通过菜单（File-> Configure SSH Keys...）无法成功，经过google检索及摸索，最后还是回到配置home下的.ssh/config 实现了完美解决。

配置位置【%userprofile%.ssh】，追加内容如下：

`Host xxx.xxx` `HostKeyAlgorithms +ssh-rsa` `PubkeyAcceptedKeyTypes +ssh-rsa` `IdentityFile C:/Users/xxx/.ssh/id_rsaxxxx`

若有多个服务器，可以参照上述内容进行追加。

注意点：若要使用home下的.ssh内容，则Fork上Configure SSH Keys里面所有的勾选要取消掉，否则可能无法生效。

---

*Originally published on [r404](https://paragraph.com/@r404/git-fork-windows-ssh-key)*
