X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=lib%2Fssh;h=93ecbcffbfc24bd12b1358010f6dba2c8ae7ac08;hp=e39d9b1388b4186e8f7a7c855148c534bbed5f4f;hb=fca2fed35a90c1085affdd48fcf1d16cbdd54597;hpb=e1d946650cb8e0ebc5f93446a2e3b14a5ffb7f34 diff --git a/lib/ssh b/lib/ssh index e39d9b1..93ecbcf 100755 --- a/lib/ssh +++ b/lib/ssh @@ -1,8 +1,8 @@ #!/bin/sh set -e -f ${DRY_RUN:+-n} -u -tool=${0%/*} +tool=${0%/*}/.. ssh \ -o StrictHostKeyChecking=yes \ - -o UserKnownHostsFile=etc/openssh/known_hosts \ + -o UserKnownHostsFile="$tool"/etc/openssh/known_hosts \ -o HashKnownHosts=no \ "$@"