git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d07b7
)
try to work around ssh prompting for a confirmation when reaching a VM
author
Thierry Parmentelat
<thierry.parmentelat@sophia.inria.fr>
Mon, 20 Feb 2012 16:17:29 +0000
(17:17 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@sophia.inria.fr>
Mon, 20 Feb 2012 16:17:29 +0000
(17:17 +0100)
sshsh
patch
|
blob
|
history
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 "$@"