动态IP的linux主机-变更IP后ssh不上-解决方法
某天机器又改IP了,ssh后,报:
mmt@ FS01:~$ssh-oStrictHostKeyChecking=no192.168.0.130
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED!@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ITISPOSSIBLETHATSOMEONEISDOINGSOMETHINGNASTY!
Someonecouldbeeavesdroppingonyourightnow(man-in-the-middleattack)!
ItisalsopossiblethattheRSAhostkeyhasjustbeenchanged.
ThefingerprintfortheRSAkeysentbytheremotehostis
fe:d6:f8:59:03:a5:de:e8:29:ef:3b:26:6e:3d:1d:4b.
Pleasecontactyoursystemadministrator.
Addcorrecthostkeyin/home/mmt/.ssh/known_hoststogetridofthismessage.
Offendingkeyin/home/mmt/.ssh/known_hosts:38
Passwordauthenticationisdisabledtoavoidman-in-the-middleattacks.
Keyboard-interactiveauthenticationisdisabledtoavoidman-in-the-middleattacks.
Permissiondenied(publickey,password).
注意这句
Addcorrecthostkeyin/home/mmt/.ssh/known_hoststogetridofthismessage.
执行:
mv/home/mmt/.ssh/known_hostsknown_hosts.bak
再连:
ssh-oStrictHostKeyChecking=no192.168.0.130