scp without known_hosts check

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.

Leave a Comment