Ssh disable strict checking

What are the different ways to disable ssh strict checking? I've seen this mentioned a few times but it doesn't seem to be working.

$ ssh -o 'StrictHostKeyChecking no' admin@hostname

http://docs.oracle.com/cd/E35328_01/E35336/html/vmcli-ssh.html

Is there a file somewhere in /etc that I could edit?

In HP-UX you can edit the file /opt/ssh/etc/ssh_config and set the parameter StrictHostKeyChecking to no . This will disable the key checking.

You also can set this parameter in a user's ~/.ssh/config file and limit it to a certain host:

Host hostname
    StrictHostKeyChecking no

That would still run the check for all other hosts but "hostname".

I forgot to mention I am using Fedora.

Thank you I will try that. What would I do if I wanted to add 2 hostnames? Would this work?

Host hostname1 hostname2
    StrictHostKeyChecking no

That's right. You can also use wildcards like

Host hostname*