标题:[实践OK]new host key 取消显示,取消securecrt 在第一次ssh2连接时的“new host key"提示。 出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Wed, 11 Oct 2017 22:18:47 +0000 作者:jackxiang 地址:http://jackxiang.com/post/9490/ 内容: 背景:有的SSH连接提示 host key,很麻烦,如何取消。 The host you specified (47.94.88.*), port 22 matched several entries in the host key database, but the server's host key did not match any of the entries. See the help file for instructions on manually maintaining the host key database. It is recommended you verify your host key before accepting. Server's host key fingerprint SHA-2 hash: a2:6e:d2:05:de:51:74:49:fe:6a:26:b6:59:d5:2d:0e:39:fa:c5:69:88:eb:97:7c:b5:cd:34:72:de:7f:45:cc SHA-1 hash: 6f:32:91:9d:ad:a4:ea:16:9f:f0:72:b1:90:79:ab:57:48:fe:0c:8f MD5 hash: 22:6c:30:34:80:01:cd:fd:1d:7a:9b:5e:96:b9:17:bc 两步: 一)删除先前的指纹文件: 来自文件:D:\Program Files\SecureCRT\ssh_tmp\SSH2.ini 文件里配置:S:"Host Key Database Location"=D:\Program Files\SecureCRT\ssh_tmp\KnownHosts\ 上面的SSH2.ini有可能升级有多个,都统一找一下里面的路径并删除掉有newhostkey问题的IP.pub,都统一批量改成二)里面的配置项。 bash-shell下操作如下: /d/Program Files/SecureCRT7.3/ssh_tmp/KnownHosts 删除掉:rm -rf '47.94.88.237[47.94.88.237]22.pub 二)配置文件修改,如下: From: D:"Automatically Accept Host Keys"=00000000 To: D:"Automatically Accept Host Keys"=00000001 Save the change, restart SecureCRT. D:\Program Files\SecureCRT\ssh_tmp\SSH2.ini 内容如下: S:"Host Key Database Location"=D:\Program Files\SecureCRT\ssh_tmp\KnownHosts\ S:"Host Key Database Location V2"=${VDS_CONFIG_PATH}\KnownHosts\ D:"Automatically Accept Host Keys"=00000001 整个配置如下: D:\Program Files\SecureCRT\ssh_tmp\SSH2.ini S:"Host Key Database Location"=D:\Program Files\SecureCRT\ssh_tmp\KnownHosts\ S:"Identity Filename"= S:"SSH1 Identity Filename"= D:"Show Port Forwarding Error Box"=00000001 D:"Public Key Type"=00000000 D:"Enable Agent Forwarding"=00000000 D:"Add Private Keys To Agent"=00000001 D:"Try All Agent Keys"=00000001 D:"Enable Deprecated Gssapi"=00000001 D:"Suppress FQDN Warning"=00000000 D:"Check Certificate Revocation Lists"=00000000 D:"Cache Session Password"=00000000 S:"Monitor Hostkey Filename"= S:"Identity Filename V2"= S:"SSH1 Identity Filename V2"= S:"Host Key Database Location V2"=${VDS_CONFIG_PATH}\KnownHosts\ S:"Monitor Hostkey Filename V2"= D:"Public Key Certificate Store"=00000000 S:"PKCS11 Provider Dll"= S:"Public Key Certificate Serial Number"= S:"Public Key Certificate Issuer"= D:"Use Certificate As Raw Key"=00000001 D:"Automatically Accept Host Keys"=00000001 来自:http://blog.csdn.net/warcraftzhaochen/article/details/73867385 Generated by Jackxiang's Bo-blog 2.1.1 Release