mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +00:00
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
This commit is contained in:
parent
5f66b93760
commit
5b72fea1ea
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user