I am trying to connect to a Linux host using ssh
and get the following error
RSA host key for 10.1.1.20 has changed and you have requested strict checking.
I would like to override this, but can't seem to find any combination of options to do this.
I probably set StrictHostKeyChecking years ago, but don't remember how.
I consulted man ssh
which informs me the system-wide configuration file is /etc/ssh/ssh_config
and default for the per-user configuration file is ~/.ssh/config
neither exists.
EDIT To clarify my question, the option is clearly set. I am trying to discover
- Where the options are stored (I don't have the files mentioned in the man page, which appears to be wrong).
- How to change the options.
I am not looking at how to work around the issue I am having (I know I can edit the known_hosts file, but this is tedious every time I try a new server).
/etc/ssh_config
on mine.ask
. When a host key changed, ssh client won't connect unlessStrictHostKeyChecking
is set tono
. If the host key doesn't change very often, I'd suggest to remove this one host key from your~/.ssh/known_hosts
instead of changing the config..ssh/known_hosts
I continued to get the warning until I discovered the offending row in another file called.ssh/known_hosts2
. apparently OS X uses both