2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

30_tradfri.pm, 39_alexa.pm: fixed ssh user

git-svn-id: https://svn.fhem.de/fhem/trunk@18580 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-02-13 10:03:55 +00:00
parent 8ba8f74f65
commit 511561518d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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