遇見bug

程式設計師的貓發表於2020-07-22

bug log

#ssh遠端登陸時
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
SHA256:6zKiuPSPE90dB6PNCj1fICgA1DTrTxPFiVbl82+sS0E.
Please contact your system administrator.
Add correct host key in /c/Users/xuliugen/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/xuliugen/.ssh/known_hosts:4
RSA host key for 192.168.107.150 has changed and you have requested strict checking.
Host key verification failed.
------------------------------解決辦法------------------------------------
vi ~/.ssh/known_hosts
#刪除相關IP的公鑰後重新連結 快捷鍵dd刪除整行
root@localhost ~]# docker run -ti -p 80:80 nginx  /bin/bash
WARNING: IPv4 forwarding is disabled. Networking will not work.  
------------------------------解決辦法------------------------------------
vi /usr/lib/sysctl.d/00-system.conf
#新增如下程式碼:
net.ipv4.ip_forward=1
#重啟network服務
systemctl restart network
# 刪除掉做錯的容器,再次建立就可以了 :
docker rm -f 
本作品採用《CC 協議》,轉載必須註明作者和本文連結

你還差得遠吶!

相關文章