windows 下 ssh  免密 gitlab/github

        1.安装git 客户端
   2.如果没有 C:\Users\Administrator\.ssh 文件夹,需要进行创建,如果有直接使用即可
   3.安装git后,“电脑桌面右键”-》git bash here

        4. # mkdir ~/.ssh

   5. # cd ~/.ssh

   6. # ssh-****** -t rsa -C "你的账号"

   7.复制 C:\Users\Administrator\.ssh\id_rsa.pub 内容到 gitlab/github 的网站后台

      windows 下 ssh 免密操作 gitlab/github,并解决Host key verification failed.

        复制到 Key 中,然后点击 Add key

       8.# git config --global user.email "[email protected]

       9.# git config --global user.name "qq" 

       10.ssh -T [email protected]

       11.一定要打 yes!yes!yes!!! 我就是被这里坑了!

        windows 下 ssh 免密操作 gitlab/github,并解决Host key verification failed.

      12.完毕。

      13.中途遇到的问题:

    windows 使用gilab/github ssh 登录不了,证书生成也正常,github网站也增加了,执行以下命令

           # ssh -T [email protected]

            windows 下 ssh 免密操作 gitlab/github,并解决Host key verification failed.

    报错:

           windows 下 ssh 免密操作 gitlab/github,并解决Host key verification failed.

    解决:不是**问题,不是权限问题,只是在询问 (yes/no)的时候直接回车了,输入yes 再回车就ok了!

          windows 下 ssh 免密操作 gitlab/github,并解决Host key verification failed.

相关文章:

  • 2022-02-27
  • 2022-12-23
  • 2021-08-18
  • 2021-09-21
  • 2021-09-22
  • 2021-11-10
  • 2022-12-23
猜你喜欢
  • 2022-01-31
  • 2021-06-02
  • 2021-05-28
  • 2021-08-11
  • 2022-12-23
相关资源
相似解决方案