Changeset 860 for trunk/Modules/NetworkConfigRouterOS/Routerboard.php
- Timestamp:
- May 8, 2019, 8:22:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r854 r860 8 8 var $UserName; 9 9 var $Password; 10 var $PrivateKey = '~/.ssh/id_ dsa';10 var $PrivateKey = '~/.ssh/id_rsa'; 11 11 var $MaxBurstLineCount = 100; 12 12 var $Debug = false; … … 52 52 $Commands = str_replace('$', '\$', $Commands); 53 53 //$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.'"'; 55 59 if($this->Debug) echo($Command); 56 60 $Output = array();
Note:
See TracChangeset
for help on using the changeset viewer.