try to work around ssh prompting for a confirmation when reaching a VM
[nodemanager.git] / sshsh
diff --git a/sshsh b/sshsh
index edcd667..e80b8ab 100755 (executable)
--- a/sshsh
+++ b/sshsh
@@ -2,4 +2,4 @@
 MAC=$(virsh --connect lxc:// --readonly dumpxml $USER|grep mac|awk -F\' '{print $2}')
 IP=$(cat /var/lib/libvirt/dnsmasq/default.leases | grep $MAC | awk '{print $3}')
 shift
-ssh root@$IP "$@"
+exec ssh -o StrictHostKeyChecking=no root@$IP "$@"