From cb9cd81efabe8afe6dc0b323cc0a3dcd75c3899b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 9 Oct 2022 10:00:06 +0000 Subject: [PATCH] 01_FHEMWEB.pm: rescueStart failed if IP not in known_hosts (Forum #129577) git-svn-id: https://svn.fhem.de/fhem/trunk@26513 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 6ee948bc8..eb20e81aa 100644 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -3503,10 +3503,13 @@ FW_Set($@) return "error: cannot fork rescue pid\n" if($hash->{rescuePID} == -1); return undef if($hash->{rescuePID}); # Parent - my $cmd = "exec ssh -N -R0.0.0.0:18083:localhost:$hash->{PORT} ". - "-i certs/fhemrescue -p$a[3] fhemrescue\@$a[2]"; - Log 1, "Starting $cmd"; - exec($cmd); + my $cmd = "ssh ". + "-oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null ". + "-N -R0.0.0.0:18083:localhost:$hash->{PORT} -i certs/fhemrescue ". + "-p$a[3] fhemrescue\@$a[2]"; + + Log3 $hash, 2, "Starting $cmd"; + exec("exec $cmd"); } if($a[1] eq "rescueTerminate") {