去掉ssh初次登录询问yes/no


ssh初次登录某个主机时,出现如下提示

Are you sure you want to continue connecting (yes/no)?
  • 如何去掉?

打开/etc/ssh/ssh_config,修改以下配置项

#  StrictHostKeyChecking ask
   StrictHostKeyChecking no

上篇: calmari日志提示OperationalError Permission denied 下篇: salt学习笔记