1. 程式人生 > >ssh登入錯誤ECDSA host key for ip has changed解決方案

ssh登入錯誤ECDSA host key for ip has changed解決方案

當我們使用ssh [email protected]登入Linux伺服器時,伺服器報錯:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:Ms+BRn93GbOO1fwP6g1O+UwSRFv9KIUMGeoHDt70OfQ.
Please contact your system administrator.
Add correct host key in /Users/aliyunbaike/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/aliyunbaike/.ssh/known_hosts:6
ECDSA host key for 47.74.190.156 has changed and you have requested strict checking.
Host key verification failed.

如何解決?原因分析:

這是由於,ssh連線伺服器時,如果之前連線過,ssh會預設儲存該ip的連線協議資訊,當我們再次訪問此ip伺服器時,ssh會自動匹配之前ssh儲存的資訊,由於我們的伺服器做了更改,例如重灌系統等操作,會導致本地儲存的ssh資訊失效,於是再次連線時就會出現上述錯誤。

另外,遠端伺服器的ssh服務被解除安裝重灌或ssh相關資料(協議資訊)被刪除也會導致這個錯誤。

解決方案:

刪除本地known_hosts裡面的快取資訊即可。命令:ssh-keygen -R "你的遠端伺服器ip地址"  

注意:R是大寫!

相關推薦

ssh登入錯誤ECDSA host key for ip has changed解決方案

當我們使用ssh [email protected]登入Linux伺服器時,伺服器報錯:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDE

Warning: Permanently added the RSA host key for IP address '52.74.223.119' to the list of known hosts.

IT hub 說明 ESS IV 公鑰 RM style ssh 如果出現這個問題,說明你的github缺少公鑰 使用 ssh -T [email protected] 去測試 1.生成密鑰 ssh-keygen -t rsa -C "your name" #引號裏輸入你的用

Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.

refs forward 本地 total warn 其中 rom ip add forwards $git push origin master 報錯: Warning: Permanently added the RSA host key for IP address

github 遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hos

  剛開始使用github的時候不是很瞭解,新手一般的都會遇到這個問題Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts。其實這只是一個警告

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hos

這個應該是很多github新手經常出錯的問題,這個就是沒有在你github上新增一個公鑰。 下面就直接說步驟: 1 可以用 ssh -T [email protected]去測試一下 圖上可以明顯看出缺少了公鑰 2 直接上圖 3. cat 一下  

ssh登入提示RSA Host key認證失敗的解決方法

【問題描述】 今天用ssh命令登入一臺此前連線過的伺服器,失敗,出現下面的錯誤提示 【問題分析】 從提示看,很明顯,是RSA key不匹配。 根據提示檢視本機/home/user/.ssh/目錄下,檢視有如下3只檔案: id_rsa id_rsa.pub known_

Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host

剛開始使用github的時候不是很瞭解,新手一般的都會遇到這個問題Permanently added the RSA host key for IP address ‘192.30.252.128’ to the list of known hosts。其實這只

Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hos

工作日誌記錄: 當使用git remote命令關聯遠端程式碼倉庫的時候,新手有可能會碰到這樣的錯誤,這種錯誤解決的辦法是在git命令視窗輸入以下命令列獲取你的rsakey: ssh-keygen -t rsa -C "你的程式碼託管伺服器註冊的使用者名稱" 然後如果不修改包

Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known host

前言 最近在學習GIt,安裝了Git bash,過程中遇到了各種問題,寫下帖子,方便大家解決問題,也方便自己回顧 問題描述 Warning: Permanently added the RSA host key for IP address '13

Mysql 1044錯誤程式碼:Access denied for user ''@'localhost'的解決方案

        親愛的程式設計師們,在日常開發中,你是否遇到過使用者名稱+密碼登入不了mysql了,或者修改了mysql密碼之後,建立資料庫,總是提示1044錯誤程式碼呢,亦或者進入mysql之後,show databases只有test和information_schema

解決ssh-copy-id時Host key verification failed的錯誤

wan 復制 ant mark con 用戶 本地 RoCE oot 如果因為某種原因(服務器系統重裝,服務器間IP地址交換,DHCP,虛擬機重建,中間人劫持),這裏筆者是因為虛擬機重建的緣故,該IP地址的公鑰改變了,當使用 SSH 連接的時候會出現 然後筆者把.s

Linux_SSH Warning: the RSA host key for differs from the key for the IP address

[[email protected] .ssh]$ ssh [email protected] ls /tmp The authenticity of host 'sjisbe381 (10.100.87.11)' can't be establis

ssh登陸主機遇到Host key varification failed故障

ssh登陸主機遇到host key varification failed故障ssh登陸主機遇到Host key varification failed故障解決方法:ssh-keygen -R hostname #生成新的known_hosts本文出自 “boyhack” 博客,請務必保留此出處h

SCP傳送文件時提示No ECDSA host key is known forx.x.x.x and you have requested strict checking.問題的解決辦法

quest str targe ecdsa conf com dev 相關 nss 在使用SCP向其他設備傳送文件時,打印如下錯誤: No ECDSA host key is known for x.x.x.x and you have requested strict c

SSH連線失敗,報錯Host key verification failed——原理和解決方法

##原因,當時用ssh命令遠端連線sshd服務的時候。連線過程是需要認證的,以保證連線的安全和資料傳輸的加密。 客戶端ssh連線服務端sshd時,服務端根據自己的私鑰生成公鑰 (身份驗證使用公鑰加密演算法實現——公鑰加密私鑰解密),並傳送給客戶端ssh。 客戶端ssh命令接收服務端的公鑰,(第一次連線時,連線

ssh:connect to host localhost port 22: Connection refused解決方法

安裝hadoop的時候,需要配置ssh無密登入 執行ssh localhsot的時候會報錯: linux系統(centos6.4) ssh:connect to host localhost po

validators配置要點及No result defined for action報錯解決方案

result 文件 con 屬性 得到 驗證類型 name 命名 請求 在做JavaEE SSH項目時,接觸到validators驗證。 需要了解validators配置,或者遇到No result defined for action 這個錯誤時,可查閱本文得到有效解決

【轉載】VMware下的Ubuntu用ifconfig不能顯示ip地址的解決方案

技術分享 linu p地址 ssg 們的 網絡接口 ssh 註意 onf 轉載於 http://blog.163.com/wjn_mcu/blog/static/23801601620146161062704/ 背景 在虛擬機下運行操作系統,尤其是Linux系統已經是非

三步解決阿裏雲綁定公網IP地址失敗解決方案

bubuko height 解決方案 客戶端 失敗 綁定 bsp 公網ip http 1.客戶端設置為阿裏雲服務器的公有地址:      2.服務端設置為阿裏雲服務器的私有地址: 3.設置阿裏雲的管理規則: 第一步 第二步 第三、四步 三步解決阿裏雲綁定公網IP地

Access Denied for user root @localhost 解決方案

my.ini chan acc exit log users err net ces 問題描述: C:\Users\bo.wang> mysql -u root -p Enter password: ERROR 1045 (28000): Access denied