How to disable Strict Host Key Checking in SSH?


Tags: linux unix ssh
Reading time: less than 1 minute

Question

I want to connect to some servers using SSH, but I want to ignore any errors about changed or missing keys. How can I accomplish this?

Answer

$ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@whatever.com

Citation

If you find this work useful, please cite it as:
@article{yaltirakliqnasshdisablehostkeychecking,
  title   = "How to disable Strict Host Key Checking in SSH?",
  author  = "Yaltirakli, Gokberk",
  journal = "gkbrk.com",
  year    = "2024",
  url     = "https://www.gkbrk.com/qna/ssh-disable-host-key-checking/"
}
Not using BibTeX? Click here for more citation styles.
IEEE Citation
Gokberk Yaltirakli, "How to disable Strict Host Key Checking in SSH?", November, 2024. [Online]. Available: https://www.gkbrk.com/qna/ssh-disable-host-key-checking/. [Accessed Nov. 12, 2024].
APA Style
Yaltirakli, G. (2024, November 12). How to disable Strict Host Key Checking in SSH?. https://www.gkbrk.com/qna/ssh-disable-host-key-checking/
Bluebook Style
Gokberk Yaltirakli, How to disable Strict Host Key Checking in SSH?, GKBRK.COM (Nov. 12, 2024), https://www.gkbrk.com/qna/ssh-disable-host-key-checking/

Comments

© 2024 Gokberk Yaltirakli