REMOTE HOST IDENTIFICATION HAS CHANGED 問題解決
今天處理 ssh連線至 ubuntu 伺服器時,提示以下錯誤:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
da:f7:3e:ba:f7:00:e6:44:76:f2:58:6e:48:**.
Please contact your system administrator.
Add correct host key in /使用者home目錄/.ssh/known_hosts to get rid of this message.
Offending RSA key in /使用者home目錄/.ssh/known_hosts:1
RSA host key for ip地址 has changed and you have requested strict checking.
Host key verification failed.
經過google,出現這個問題的原因是,第一次使用SSH連線時,會生成一個認證,儲存在客戶端的known_hosts中.
可使用以下指令檢視:
ssh-keygen -l -f ~/.ssh/known_hosts
由於伺服器重新安裝系統了,所以會出現以上錯誤。
解決辦法
ssh-keygen -R 伺服器端的ip地址
會出現以下提示:
Host 192.168.3.10 found: line 1 type RSA
/使用者home目錄/.ssh/known_hosts updated.
Original contents retained as /使用者home目錄/.ssh/known_hosts.old
重新連線,出現以下提示:
The authenticity of host '192.168.3.10 (192.168.3.10)' can't be established.
RSA key fingerprint is da:f7:3e:ba:f7:00:e6:44:76:f2:58:6e:48:**.
Are you sure you want to continue connecting (yes/no)?
輸入yes確認即可連線成功.
相關文章
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED解決方法REMIDE
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- ssh登陸 “remote host identification has changed!“ 解決方案REMIDE
- SSH登入:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- Linux - SSH: WARNING REMOTE HOST IDENTIFICATION HAS CHANGEDLinuxREMIDE
- Linux scp 提示"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED" 的解決方案LinuxREMIDE
- SSH登入警告(WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)REMIDE
- ssh無法連線 WARNING REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- SSH登陸錯誤 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- linux之 ssh連線伺服器,WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!Linux伺服器REMIDE
- ssh問題:ssh_exchange_identification: Connection closed by remote hostIDEREM
- 解決The jar file has no source attachment問題JAR
- 【Ubuntu】unknown host問題解決辦法Ubuntu
- 解決pycharm問題:module 'pip' has no attribute 'main'PyCharmAI
- has been blocked by CORS policy跨域問題解決BloCCORS跨域
- MySQL server has gone away 問題的解決方法MySqlServerGo
- "ScrollView can host only one direct child"問題解決View
- 安裝RAC,Actual Result: Unknown Host Exception has Occurred錯誤解決Exception
- 解決“The remote certificate is invalid according to the validation procedure”問題REM
- PHP Warning: exec() has been disabled for security 問題解決辦法PHP
- 問題解決:AttributeError: ‘NoneType‘ object has no attribute ‘append‘ErrorNoneObjectAPP
- 解決最近fiddler出現“The system proxy was changed,click to reenable fiddler capture”的問題APT
- npm ERR! code CERT_HAS_EXPIRED:解決證書過期問題NPM
- Doris建立表報錯Failed to find enough host with storage medium問題解決AI
- 問題解決:TNS-12543: TNS:destination host unreachable
- 解決STS或者Eclipse卡死在remote system explorer operation問題EclipseREM
- 解決「問題」,不要解決問題
- 【問題解決】remote: parse error: Invalid numeric literal at line 1, column 20,解決思路REMError
- 解決問題:啟動不了VM,提示 Your VM has become “inaccessible…
- Trouble shooting(問題解決):centos 7 gnome show someting has gone wrong.CentOSGo
- 解決問題
- 問題MySQL server has gone awayMySqlServerGo
- 發現問題,解決問題
- yum問題解決
- sqlitedabaseislocked問題解決SQLite
- dump 解決問題
- [原創] How to pull code when shared repo commit history has been changedMIT
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM