diff --git a/src/inc/ssh.php b/src/inc/ssh.php index b4712f12dcece23ea2b3b6528d62d5f416c3526d..3b33bf9e35850e9e3a2529a423727b0a919b86a1 100644 --- a/src/inc/ssh.php +++ b/src/inc/ssh.php @@ -38,7 +38,7 @@ function scp_a_file($conf, $con, $ip_addr, $local_file, $remote_dest, $mode){ ssh2_scp_send($ssh, $local_file, $remote_dest, $mode); ssh2_disconnect($ssh); }else{ - $cmd = "scp -o \"StrictHostKeyChecking no\" -i /etc/openstack-cluster-installer/id_rsa $local_file root@$ip_addr:$remote_dest"; + $cmd = "scp -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null -o \"StrictHostKeyChecking no\" -i /etc/openstack-cluster-installer/id_rsa $local_file root@$ip_addr:$remote_dest"; $output = array(); $return_var = 0; exec($cmd, $output, $return_var);