mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
5da6a0e1cd
commit
78ea0ac5fb
@ -395,7 +395,7 @@ gassistant_getCMD($)
|
|||||||
if( my $host = AttrVal($name, 'gassistantFHEM-sshHost', undef ) ) {
|
if( my $host = AttrVal($name, 'gassistantFHEM-sshHost', undef ) ) {
|
||||||
my $ssh = qx( which ssh ); chomp( $ssh );
|
my $ssh = qx( which ssh ); chomp( $ssh );
|
||||||
if( my $user = AttrVal($name, 'gassistantFHEM-sshUser', undef ) ) {
|
if( my $user = AttrVal($name, 'gassistantFHEM-sshUser', undef ) ) {
|
||||||
$ssh_cmd = "$ssh $host -u $user";
|
$ssh_cmd = "$ssh $user \@$host";
|
||||||
} else {
|
} else {
|
||||||
$ssh_cmd = "$ssh $host";
|
$ssh_cmd = "$ssh $host";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user