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
- [sublime xftp外掛] Host key verification failed ,錯誤處理FTPAI
- 記錄一個生產環境小錯誤。SSH連線時,出現提示遠端密碼重置的報錯【Host key verification failed.】密碼AI
- ssh連線遠端伺服器出現Host key verification failed. lost connection問題的解決伺服器AI
- vscode中Git: host key verification failed的解決辦法VSCodeGitAI
- sshd啟動報錯Could not load host key
- SSH 登入失敗:Host key verification failed 的處理方法AI
- scp 報錯 not a regular file
- ansible執行playbook報Host Key checking
- Linux 報錯Certificate verification failed: The certificate is NOT trusted.LinuxAIRust
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError
- linux-scp 遠端拷貝報錯原因Linux
- 安裝MySQL5.7報錯:The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed.MySqlServerAI
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- Java中List集合轉Map集合報錯:Duplicate keyJava
- Navicat連線centos裡mysql報錯Host is not allowed to connect to this MySQL serverCentOSMySqlServer
- Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hos
- ssh 遠端登入報錯:Unable to negotiate with IP port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss 解決辦法Go
- 小程式 · 報錯:Error: errCode: -501007 ,errMsg: Invalid Key Name (__keyPath)Error
- 工作195:解決key值不唯一的報錯
- 解決MySql報錯:1130 - Host ‘xxx‘ is not allowed to connect to this MySQL server的方法MySqlServer
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- Doris建立表報錯Failed to find enough host with storage medium問題解決AI
- 執行遷移檔案報錯 1071 Specified key was too long.
- java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 報錯的解決方案JavaSQLException
- scp
- 帝國CMS後臺新增資訊報錯Duplicate entry xx for key PRIMARY
- JAVA spring&hibernate資料來源配置不當報錯key postgresIsPoolJavaSpring
- 虛擬機器NAT模式下連線mysql報錯:Host '192.168.30.1' is not allowed to connect to this MySQL server虛擬機模式MySqlServer
- Gradle專案Build的時候,頻繁報Unknown host 'jcenter.bintray.com' 錯誤GradleUI
- 使用Rockey作業系統允許rancher映象報錯iptables is not available on this host解決方法作業系統AI
- scp命令
- SCP 2024
- iOS-新手常見錯誤:this class is not key value coding-compliant for the key xxiOS
- MySQL 5.6複製報錯Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;MySqlError
- [報錯:字元太長] SQLSTATE [42000]: Syntax error or access violation: 1071 Specified key was t oo long;字元SQLError
- 【YashanDB資料庫】自關聯外來鍵插入資料時報錯:YAS-02033 foreign key constraint violated parent key not found資料庫AI
- linux命令---scpLinux
- 常用scp命令