国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

這篇具有很好參考價值的文章主要介紹了Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

問題描述
代碼倉庫已經添加了ssh公鑰之后,克隆代碼到本地時就報了這個問題

執(zhí)行命令 git clone git@xxxxxxxxxxxxx.git
不能正常clone代碼,報錯信息如下:

Unable to negotiate with xxxxxxx port 22: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

如圖所示:
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

解決方案:
首先是找到git安裝目錄(根據自己安裝時選項,找到這個目錄)
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

然后進入 etc目錄,找到ssh目錄
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

再進入ssh目錄,找到 ssh_config 配置文件
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

打開ssh_config此文件,滑動到最下面,新增自己git主機地址(這里我直接默認*)

直接復制下面這一段到文件中最底部位置即可

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

配置完成后,保存配置文件后再次去clone代碼
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

終于可以克隆下來了。。。文章來源地址http://www.zghlxwxcb.cn/news/detail-444037.html

到了這里,關于Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!

本文來自互聯(lián)網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉載,請注明出處: 如若內容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • 記一次使用git報錯,解決Unable to negotiate with **** port 22: no matching host key type found. Their offer:...

    windows電腦重裝系統(tǒng),去官網下載了最新的git安裝,一路next下來,打開bash按老路子設置,生成公鑰 把公鑰添加到阿里云,clone代碼時拉不下來,報錯。 查看自己是開發(fā)者權限,重置一遍公鑰再添加也不行,去網上找方法,介紹這種情況的原因就是新的ssh客戶端不支持ssh-rsa算

    2024年02月11日
    瀏覽(51)
  • Unable to negotiate with 172.16.28.137 port 22: no matching host key type found. Their offer: ssh-rs

    ssh連接服務器報錯“Unable to negotiate with 172.16.28.137 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss” 原因是 Terminal 找不到支持的密鑰交換方法,因為新版 Openssh 中認為 SHA1 這種 hash 散列算法過于薄弱,已經不再支持,所以我們需要手動去允許對于 SHA1 的支持。 解決方案

    2024年02月09日
    瀏覽(29)
  • Unable to negotiate with ***** port **:no matching host key type found...連接的端口的密鑰沒有匹配

    Unable to negotiate with ***** port **:no matching host key type found...連接的端口的密鑰沒有匹配

    連接的端口的密鑰沒有匹配 ● 解決方法 查看網上的各種方法,這種情況的原因就是新的ssh客戶端不支持ssh-rsa算法,要修改本地配置重新使用ssh-rsa算法。 在.ssh文件下創(chuàng)建 config 文件(config沒有后綴名),使用記事本打卡添加以下內容并保存: Host * HostkeyAlgorithms +ssh-rsa Pubk

    2024年02月11日
    瀏覽(18)
  • git拉取代碼報錯:Unable to negotiate with xxx port xxx: no matching host key type found

    git拉取代碼報錯: SSH有幾種不同類型的密鑰:RSA密鑰 (ssh-rsa) 可以支持多種簽名。簽名類型sssh-rsa是指帶有SHA-1的RSA,而簽名類型rsa-sha2-256是帶有SHA-256的RSA,rsa-sha2-512是帶有SHA-512的RSA。 上面報錯中提示,git服務端中使用的密鑰是ssh-rsa類型的,而我本地的ssh(openSSH 9.x)默認不

    2024年02月11日
    瀏覽(29)
  • 【已解決】Unable to negotiate with XXX port : no matching host key type found. Their offer: ssh-rsa

    【已解決】Unable to negotiate with XXX port : no matching host key type found. Their offer: ssh-rsa

    克隆代碼庫發(fā)生報錯 Unable to negotiate with XXX port : no matching host key type found. Their offer: ssh-rsa,ssh-dss # 首先保證在主目錄下方,如果不是先運行: cd ~ 如果沒有.ssh目錄就新建一個運行:mkdir .ssh 然后往config文件中添加以下信息: 再次嘗試即可成功 ?

    2024年02月11日
    瀏覽(23)
  • 最詳細解決Unable to negotiate with XXX port :no matching host key type found.Their offer: ssh-rsa,ssh-dss

    最詳細解決Unable to negotiate with XXX port :no matching host key type found.Their offer: ssh-rsa,ssh-dss

    1、切換為root用戶 2、 ? 3、如果沒有.ssh文件夾 ? 4、如果有.ssh文件夾 ? 5、如果沒有config文件 ? 6、如果有config文件 ? 然后再去試試git是否可以正常拉取和提交

    2024年02月05日
    瀏覽(28)
  • 如何修復macOS ssh上的“Unable to negotiate withport 22: no matching host key type found ”

    如何修復macOS ssh上的“Unable to negotiate withport 22: no matching host key type found ”

    新購置一臺蘋果筆記本,ssh上一臺服務器時提示下面錯誤 為了成功連接,OpenSSH 的每個參數必須至少有一個相互支持的選擇。如果客戶端和服務器未能就一組相互參數達成一致,則連接將失敗。在這種情況下,客戶端和服務器無法就主機密鑰算法類型達成一致。服務器提供了

    2024年02月13日
    瀏覽(43)
  • 解決SSH連接報錯:Unable to negotiate with 192.168.xx.xx port 22

    遇到SSH連接報錯:無法協(xié)商匹配的密鑰交換方法時,解決方法是手動配置本地SSH客戶端以指定特定的密鑰交換算法。學習如何通過修改SSH配置文件解決這一問題。

    2024年02月11日
    瀏覽(51)
  • ssh: connect to host master port 22: No route to host

    ssh: connect to host master port 22: No route to host

    在學習過程中,進行配置ssh免密登陸時,ssh內回環(huán)出現了這個錯誤ssh: connect to host master port 22: No route to host,因為我是下午配置好hosts文件后就沒有繼續(xù)弄了,晚上繼續(xù)時出現了這個錯誤。上網了解了一下可能是防火墻或者網絡的問題,我這里防火墻是關閉了的,所以我先輸入

    2024年02月11日
    瀏覽(24)
  • 解決ssh: connect to host slave1 port 22: No route to host

    解決ssh: connect to host slave1 port 22: No route to host

    集群都搭建好了,不知道為啥突然master連接不上slave1了,slave0都連接上了。。。 目錄 1 確定slave1虛擬機上的dns設置有沒有問題 2 檢查網絡配置是否正常, 3 檢查ssh服務是否開啟 4 檢查slave1防火墻是否關閉,建議永久關閉防火墻 5 檢查連接不上的slave1的ip 在/etc/resolv.conf中添加

    2024年02月16日
    瀏覽(13)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包