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/

  • 相关阅读:
    mysql创建表
    MySql数据类型(转)
    mysql命令总结
    php文件遍历类:FileBianli.class.php
    php文件删除
    php文件复制
    php文件遍历
    php下载c
    智能眼镜的行业应用
    《代谢增长论》读书笔记
  • 原文地址:https://www.cnblogs.com/jhj117/p/15606487.html
Copyright © 2011-2022 走看看