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
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?
$ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@whatever.com
@article{yaltirakliqnasshdisablehostkeychecking, title = "How to disable Strict Host Key Checking in SSH?", author = "Yaltirakli, Gokberk", journal = "gkbrk.com", year = "2025", url = "https://www.gkbrk.com/qna/ssh-disable-host-key-checking/" }
Gokberk Yaltirakli, "How to disable Strict Host Key Checking in SSH?", February, 2025. [Online]. Available: https://www.gkbrk.com/qna/ssh-disable-host-key-checking/. [Accessed Feb. 04, 2025].
Yaltirakli, G. (2025, February 04). How to disable Strict Host Key Checking in SSH?. https://www.gkbrk.com/qna/ssh-disable-host-key-checking/
Gokberk Yaltirakli, How to disable Strict Host Key Checking in SSH?, GKBRK.COM (Feb. 04, 2025), https://www.gkbrk.com/qna/ssh-disable-host-key-checking/
© 2025 Gokberk Yaltirakli