当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

 

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