[实践OK]new host key 取消显示,取消securecrt 在第一次ssh2连接时的“new host key"提示。
背景:有的SSH连接提示 host key,很麻烦,如何取消。
两步:
一)删除先前的指纹文件:
来自文件: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
来自:http://blog.csdn.net/warcraftzhaochen/article/details/73867385
两步:
一)删除先前的指纹文件:
来自文件: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
来自:http://blog.csdn.net/warcraftzhaochen/article/details/73867385
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/9490/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2017-10-12 10:41
评论列表