Fix: first ssh connection
authorRomain Forlot <romain.forlot@iot.bzh>
Sun, 28 May 2017 11:01:23 +0000 (13:01 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Sun, 28 May 2017 11:01:23 +0000 (13:01 +0200)
Don't ask to valid host key at first connection to a host

Change-Id: I664d15e2a913638ffccb85c4d420a0df8b9addc5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
ssh/start-on-target.in

index 309a059..b0623cf 100644 (file)
@@ -13,7 +13,7 @@ export RSYNC_PREFIX=@RSYNC_PREFIX@/@PROJECT_NAME@
 export AFB_REMPORT=@AFB_REMPORT@
 export AFB_TOKEN=@AFB_TOKEN@
 
-exec ssh -tt $RSYNC_TARGET << EOF 
+exec ssh -o "StrictHostKeyChecking no" -tt $RSYNC_TARGET << EOF
     afb-daemon --workdir=$RSYNC_PREFIX --port=$AFB_REMPORT --roothttp=./htdocs --ldpath=./lib --verbose --token=$AFB_TOKEN &
     PID_DAEMON=\$!