From: Thierry Parmentelat Date: Mon, 20 Feb 2012 16:17:29 +0000 (+0100) Subject: try to work around ssh prompting for a confirmation when reaching a VM X-Git-Tag: nodemanager-2.1-1~11 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=973e601b8663412a3c31860b2a77fa7b87c8c360 try to work around ssh prompting for a confirmation when reaching a VM --- diff --git a/sshsh b/sshsh index edcd667..e80b8ab 100755 --- 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 "$@"