Git工具Fork在Windows下某些场景无法使用ssh key的解决
December 30th, 2021

#Git #Fork #Windows #SSH

之前有朋友推荐过一款Git的GUI端Fork ,趁着打折冲动购入。基本功能倒蛮不错,但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里面所有的勾选要取消掉,否则可能无法生效。

Subscribe to r404
Receive the latest updates directly to your inbox.
Verification
This entry has been permanently stored onchain and signed by its creator.
More from r404

Skeleton

Skeleton

Skeleton