Dup Goto 📝

Connecting without Host Key Error

PT2/net/ssh net ssh 02-06 23:23:58
To Pop
17 lines, 75 words, 605 chars Friday 2026-02-06 23:23:58

To do a one-time connect without errors (strict host key checking):

ssh -o StrictHostKeyChecking no -o UserKnownHostsFile=/dev/null <hostname>

(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)

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.