passing yes argument while scp command
Probably the best way to do this would be to use the following command before your scp command:
ssh-keyscan -H ${SSH_HOST} >> ~/.ssh/known_hosts
This will add the SSH_HOST to your known hosts and scp
will not complain. Substitute ${SSH_HOST} for the IP address you are trying to connect to.