try to work around ssh prompting for a confirmation when reaching a VM
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 20 Feb 2012 16:17:29 +0000 (17:17 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 20 Feb 2012 16:17:29 +0000 (17:17 +0100)
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 "$@"