當ssh登錄出問題時候

 具體操作是這樣,我在

vi /etc/network/interfaces  添加靜態ip之後,

 


auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
address 192.168.0.174
netmask 255.255.255.0
gateway 192.168.0.1
nameservers 8.8.8.8

sudo /etc/init.d/networking restart

之後又重啓了

ssh的時候就出現了以下情況

 

ssh [email protected]
The authenticity of host '192.168.0.174 (192.168.0.174)' can't be established.
ECDSA key fingerprint is SHA256:XQIbi6qISHKG+3CwH4GxO5/XgWsD2bUK+ygTJqEAsvE.
Are you sure you want to continue connecting (yes/no)? yes

輸入密碼提示密碼不正確

ssh  -o StrictHostKeyChecking=no  [email protected] 

輸入密碼

 

再次ssh,正常輸入密碼,問題解決。

感謝此博客      https://www.cnblogs.com/huanghongbo/p/6254400.html

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章