Ssh – scp without known_hosts check

known-hostsscpssh

Is there any chance to skip the known_hosts check without clearing known_hosts or disable it in ssh.conf? I neither have access to known_hosts nor ssh.conf yet.
Don't find any suitable in man.

Best Answer

scp is supposed to take the same command line options as ssh, try:

-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null

Maybe add -q to disable the warnings as well.