scp without known_hosts check
Solution 1:
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.
Solution 2:
For those of us who are less versed in Linux shorthand, the full syntax would look something like this:
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r $source $user@$host:$destination