Ignore:
Timestamp:
May 8, 2019, 8:22:45 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Made some links to follow http/https protocol.
  • Modified: Simplified .htaccess.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Routerboard.php

    r854 r860  
    88  var $UserName;
    99  var $Password;
    10   var $PrivateKey = '~/.ssh/id_dsa';
     10  var $PrivateKey = '~/.ssh/id_rsa';
    1111  var $MaxBurstLineCount = 100;
    1212  var $Debug = false;
     
    5252      $Commands = str_replace('$', '\$', $Commands);
    5353      //$Commands = str_replace(' ', '\ ', $Commands);
    54       $Command = $this->SSHPath.' -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.' -o HostKeyAlgorithms=+ssh-dss -o KexAlgorithms=diffie-hellman-group14-sha1 -i '.$this->PrivateKey.' '.$this->HostName.' "'.$Commands.'"';
     54      if ($this->PrivateKey != '') $PrivKey = ' -i '.$this->PrivateKey;
     55        else $PrivKey = '';
     56
     57      $Command = $this->SSHPath.' -oBatchMode=no -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.
     58        $PrivKey.' '.$this->HostName.' "'.$Commands.'"';
    5559      if($this->Debug) echo($Command);
    5660      $Output = array();
Note: See TracChangeset for help on using the changeset viewer.