美文网首页
win10创建ssh失败

win10创建ssh失败

作者: 云顶天宫写代码 | 来源:发表于2018-11-10 23:26 被阅读0次

以国内的码云为例:

第一步:如果装了git ,右键桌面找到 git bash 打开

第二步:ssh-keygen -t rsa -C "xxxxxx@qq.com"  请替换自己的邮箱;

回车后提示:Enter file in which to save the key (/c/Users/zk/.ssh/id_rsa):

输入  id_rsa_gitee ,这是一般的命名规则,然后一直回车即可

第三步 :执行命令  eval `ssh-agent -s`

第四步:执行命令  ssh-add ~/.ssh/id_rsa_gitee

第五步:执行命令  ssh -T git@gitee.com,如果看到  You've successfully authenticated, but GITEE.COM does not provide shell access. 大功告成!!!

相关文章

网友评论

      本文标题:win10创建ssh失败

      本文链接:https://www.haomeiwen.com/subject/rvwtfqtx.html