From 973e601b8663412a3c31860b2a77fa7b87c8c360 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 20 Feb 2012 17:17:29 +0100 Subject: [PATCH] try to work around ssh prompting for a confirmation when reaching a VM --- sshsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "$@" -- 2.43.0