Changeset 854 for trunk/Modules/NetworkConfigRouterOS/Routerboard.php
- Timestamp:
- Mar 18, 2018, 12:19:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r658 r854 8 8 var $UserName; 9 9 var $Password; 10 var $PrivateKey = ' id_dsa';10 var $PrivateKey = '~/.ssh/id_dsa'; 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.' - i '.$this->PrivateKey.' '.$this->HostName.' "'.$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.'"'; 55 55 if($this->Debug) echo($Command); 56 56 $Output = array();
Note:
See TracChangeset
for help on using the changeset viewer.