title: Connecting without Host Key Error tags: net ssh To do a one-time connect without errors: ```bash ssh -o StrictHostKeyChecking no -o UserKnownHostsFile=/dev/null ``` (I have a machine usually running Kubuntu that I sometimes boot into Windows, so encounter host key check failures when ssh'ing to Windows.) (Answer from a comment [on this askubuntu](https://askubuntu.com/questions/87449/how-to-disable-strict-host-key-checking-in-ssh)) or put in `.ssh/config` ``` Host b HostName binky StrictHostKeyChecking no UserKnownHostsFile=/dev/null ``` Note, **only do this on a LAN where security isn't an issue**.