Ajout : iodined tunnel IP sur DNS.
[lhc/ateliers.git] / remote / ssh-update-known-hosts
index 33b75de..929619f 100755 (executable)
@@ -1,9 +1,12 @@
-#!/bin/sh -eux
+#!/bin/sh -eu
 tool=$(readlink -e "${0%/*}/..")
 . "$tool"/remote/lib.sh
 
-"$tool"/remote/ssh \
+ssh \
  -o CheckHostIP=no \
- -o HashKnownHosts=no \
+ -o ControlMaster=no \
  -o StrictHostKeyChecking=no \
- whoami
+ -o UserKnownHostsFile="$tool"/etc/ssh/known_hosts \
+ -o HashKnownHosts=no \
+ "$@" \
+ true