在为windows 环境下的github账户添加SSH key时,需要在Git Bash执行如下命令: 第一步:检查已有的SSH keys $ ls -al ~/.ssh 第二步:生成新的SSH key $ ssh-keygen -t rsa -C "your_email@example.com" # Creates a new ssh key, using the provided email as a label # Generating public/private rsa ke
gitkraken clone远程仓库时报错 Configured SSH key is invalid. Please confirm that is properly associated with your Git provider. 其实这个报错已经很明显了,在gitkraken的preferences->authentication中生成的SSH公钥不能与git提供者(自己服务器)的公钥关联. 其实就是没有让服务器登记gitkraken的SSH公钥 解决办法,找到SSH公钥的默认路径:
1.检查电脑里是否有SSH Key 打开git Bash客户端 cd ~/.ssh ls 如果有就会输出下面内容 config id_rsa id_rsa.pub known_hosts 2.创建 邮箱为注册github的邮箱 ssh-keygen -t rsa -C "你的邮箱" 可以直接按enter键 Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/peng/