Git的使用之获取shhKey 首先生成Shhkey 右键点击Git Bush Here 1.输入ssh-keygen -t rsa -b 2048 -C “你的邮箱地址” 2.C:\Users\xxx.ssh 3.复制id_rsa_pub内容到 点击Setings 选择SSHKeys 注意:如果操作以上步骤idea还是报错 可能是这两个文件中的密钥信息匹配不上 需要重新生成Known_hosts文件