SCP報錯:Host key verification failed.
1 scp報錯:REMOTE HOST IDENTIFICATION HAS CHANGED!
[root@xx ~]# scp yum-3.4.3.tar.gz 10.xx.xx.12:/root
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xxxxx.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:20
RSA host key for 10.xx.xx.12 has changed and you have requested strict checking.
Host key verification failed.
lost connection
[root@cache-2 ~]#
2, google,RSA報錯,要不重建RSA Key,要麼就刪除Client的known_hosts中對應的ip資訊記錄,這裡選擇後一種。
3, 先找到known_hosts的路徑
[root@xx tmp]# find / -name known_hosts
/root/.ssh/known_hosts
4,先備份系統檔案,在修改
[root@cache-2 tmp]#
[root@cache-2 tmp]#
[root@cache-2 tmp]# cp /root/.ssh/known_hosts /root/.ssh/bak.20140526.known_hosts
[root@cache-2 tmp]#
[root@cache-2 tmp]# vim /root/.ssh/known_hosts
找到
10.xx.xx.12 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0ifRyEQAdoH+1GFnFv+c+vzQ8tCIxREuAff57heXPt0sJpTNaJaB/RsFV4yKmBdyrOggdmxEdm1G851Ni+m6OW7fzUdZnqfQaF/pAmu0fyhVGWa0rjNG6IVyrrFEMKxn8cgLSLfxSwfC8aM6y30sCBAeUy6xTUI2ImOMk9e9UR6vBSENweZUj53CqfIg/NfqL1GozShiKF4+Wt3zuQDVTMNbPeB3Yyp3U+v4TLnAaYgA5fjGGZmN0QUcI//toZpyVVWmFnxXUKhqFzmHDPNrlfgq2nCqXCdYUVCZHty7hupDY0YkzUt12VR5Ifdg2BpvHZki5cPZL/046laeIX1DGw==
刪除即可。
5,再執行scp命令,輸入密碼,傳輸成功。
[root@xx ~]# scp yum-3.4.3.tar.gz 10.xx.xx.12:/root
root@10.xx.1x.12's password:
yum-3.4.3.tar.gz 100% 1114KB 1.1MB/s 00:00
[root@xx ~]#
[root@xx ~]# scp yum-3.4.3.tar.gz 10.xx.xx.12:/root
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xxxxx.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:20
RSA host key for 10.xx.xx.12 has changed and you have requested strict checking.
Host key verification failed.
lost connection
[root@cache-2 ~]#
2, google,RSA報錯,要不重建RSA Key,要麼就刪除Client的known_hosts中對應的ip資訊記錄,這裡選擇後一種。
3, 先找到known_hosts的路徑
[root@xx tmp]# find / -name known_hosts
/root/.ssh/known_hosts
4,先備份系統檔案,在修改
[root@cache-2 tmp]#
[root@cache-2 tmp]#
[root@cache-2 tmp]# cp /root/.ssh/known_hosts /root/.ssh/bak.20140526.known_hosts
[root@cache-2 tmp]#
[root@cache-2 tmp]# vim /root/.ssh/known_hosts
找到
10.xx.xx.12 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0ifRyEQAdoH+1GFnFv+c+vzQ8tCIxREuAff57heXPt0sJpTNaJaB/RsFV4yKmBdyrOggdmxEdm1G851Ni+m6OW7fzUdZnqfQaF/pAmu0fyhVGWa0rjNG6IVyrrFEMKxn8cgLSLfxSwfC8aM6y30sCBAeUy6xTUI2ImOMk9e9UR6vBSENweZUj53CqfIg/NfqL1GozShiKF4+Wt3zuQDVTMNbPeB3Yyp3U+v4TLnAaYgA5fjGGZmN0QUcI//toZpyVVWmFnxXUKhqFzmHDPNrlfgq2nCqXCdYUVCZHty7hupDY0YkzUt12VR5Ifdg2BpvHZki5cPZL/046laeIX1DGw==
刪除即可。
5,再執行scp命令,輸入密碼,傳輸成功。
[root@xx ~]# scp yum-3.4.3.tar.gz 10.xx.xx.12:/root
root@10.xx.1x.12's password:
yum-3.4.3.tar.gz 100% 1114KB 1.1MB/s 00:00
[root@xx ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26230597/viewspace-1170123/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mac SSH 連線出現 Host key verification failed. 錯誤解決MacAI
- javascript:void(null)gitLab---Host key verification failed.JavaScriptNullGitlabAI
- SSH Host key verification failedAI
- [sublime xftp外掛] Host key verification failed ,錯誤處理FTPAI
- 記錄一個生產環境小錯誤。SSH連線時,出現提示遠端密碼重置的報錯【Host key verification failed.】密碼AI
- ssh連線遠端伺服器出現Host key verification failed. lost connection問題的解決伺服器AI
- SSH 登入失敗:Host key verification failed 的處理方法AI
- vscode中Git: host key verification failed的解決辦法VSCodeGitAI
- linux-scp 遠端拷貝報錯原因Linux
- Could not resolve host: 'localhost 報錯解決辦法localhost
- 安裝MySQL5.7報錯:The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed.MySqlServerAI
- Django報錯django.utils.datastructures.MultiValueDictKeyErrorDjangoASTStructError
- Check_icmp check_host_alive報錯解決方法
- msfconsole,OpenSSL::PKey::PKeyError報錯解決辦法Error
- Navicat連線centos裡mysql報錯Host is not allowed to connect to this MySQL serverCentOSMySqlServer
- Linux scp 提示"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED" 的解決方案LinuxREMIDE
- Java中List集合轉Map集合報錯:Duplicate keyJava
- 【iOS報錯】“this class is not key value coding-compliant for the key userPhoneNum”給字典設定鍵值對的時候報錯iOS
- Doris建立表報錯Failed to find enough host with storage medium問題解決AI
- 誰遇到過執行 monkey 的時候報 filenotfound 的報錯
- import提升導致Fundebug報錯:“請配置apikey”ImportAPI
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- 記一次 打包報錯:Keystore was tampered with, or password was incorrect
- scp出現錯誤的解決辦法
- Android XML佈局報錯:android/view/View$OnUnhandledKeyEventListenerAndroidXMLView
- 工作195:解決key值不唯一的報錯
- MySQL 建立外來鍵報錯Can't write; duplicate key in tableMySql
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- EM報錯:需要HOST Credentials驗證,但輸入什麼都提示錯誤 解決辦法
- vue報錯之Duplicate keys detected: '0'. This may cause an update error.VueError
- el-tree 報錯 TypeError: Cannot read property ‘setCheckedKeys‘ of undefined“ErrorUndefined
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- 11gR2 grid安裝最後報錯[INS-20802] Oracle Cluster Verification Utility failedOracleAI
- 小程式 · 報錯:Error: errCode: -501007 ,errMsg: Invalid Key Name (__keyPath)Error
- CenOS6.3 ssh 公鑰認證報錯:Permission denied (publickey,gssapi-keyex,gssapi-with-mic)API
- scp命令
- 測試前奏 之 dos字元頁面執行 monkeyrunner 命令報錯字元
- Linux有問必答:如何修復“sshd error: could not load host key”LinuxError