zoukankan      html  css  js  c++  java
  • win10 git 命令行出现 no matching host key type found. Their offer: sshrsa 解决方案

    背景:

    win10电脑, 公私钥都已经配置好。

    一 现象:

    1. 配置好公私钥之后,仍然无法直接用 git ssh的方式,下载代码。

    2. 出现形如

       no matching host key type found. Their offer: ssh-rsa 的错误.

    二. 解决方案:

    C:\Users\walkerjiang\.ssh\config

    增加以下二项

    HostKeyAlgorithms ssh-rsa
    PubkeyAcceptedKeyTypes ssh-rsa

    最终如下:

    Host git.oa.com
    HostName git.oa.com
    User xxxx  #用户名
    Port 12345  #真实端口
    IdentityFile C:\Users\xxxxx\.ssh\私钥名   
    HostKeyAlgorithms ssh-rsa
    PubkeyAcceptedKeyTypes ssh-rsa

    解决问题来源参与:

    https://www.linuxquestions.org/questions/linux-security-4/no-matching-host-key-type-found-their-offer-ssh-rsa-ssh-dss-4175701155/

  • 相关阅读:
    Day4
    Day 4 -E
    Day4
    Day4
    Day4
    Day4
    Day4-F-产生冠军 HDU
    Day4
    Day4-B-最短路径问题 HDU3790
    HackerRank
  • 原文地址:https://www.cnblogs.com/jhj117/p/15606487.html
Copyright © 2011-2022 走看看