2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

39_gassistant: ssh fix

git-svn-id: https://svn.fhem.de/fhem/trunk@18589 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dominikkarall 2019-02-13 19:42:18 +00:00
parent 5da6a0e1cd
commit 78ea0ac5fb

View File

@ -395,7 +395,7 @@ gassistant_getCMD($)
if( my $host = AttrVal($name, 'gassistantFHEM-sshHost', undef ) ) {
my $ssh = qx( which ssh ); chomp( $ssh );
if( my $user = AttrVal($name, 'gassistantFHEM-sshUser', undef ) ) {
$ssh_cmd = "$ssh $host -u $user";
$ssh_cmd = "$ssh $user \@$host";
} else {
$ssh_cmd = "$ssh $host";
}