2022年5月30日 星期一

關閉 SSH Host Key 及 known_hosts

指令列
ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no"  ssh-host

設定檔  ~/.ssh/config,/etc/ssh/ssh_config 
Host *
   StrictHostKeyChecking no
   UserKnownHostsFile /dev/null
   LogLevel ERROR

Host 192.168.0.*
   StrictHostKeyChecking no
   UserKnownHostsFile /dev/null
   LogLevel ERROR

沒有留言: