Changeset 10150 for trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
r9862 r10150 91 91 92 92 if ( ( !empty ($opt['public_key']) ) && ( !empty ($opt['private_key']) ) ) { 93 $this->options['public_key'] = $opt['public_key']; 93 $this->options['public_key'] = $opt['public_key']; 94 94 $this->options['private_key'] = $opt['private_key']; 95 95 96 96 $this->options['hostkey'] = array("hostkey" => "ssh-rsa"); 97 98 $this->keys = true; 97 98 $this->keys = true; 99 99 } 100 100 … … 106 106 $this->options['password'] = $opt['password']; 107 107 } 108 108 109 109 } 110 110 111 111 function connect() { 112 112 $this->debug("connect();"); 113 113 114 114 if ( ! $this->keys ) { 115 $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']); 115 $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']); 116 116 } else { 117 $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']); 118 } 119 117 $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']); 118 } 119 120 120 if ( ! $this->link ) { 121 121 $this->errors->add('connect', sprintf(__('Failed to connect to SSH2 Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); … … 359 359 //Not implmented. 360 360 } 361 361 362 362 function mkdir($path, $chmod = null, $chown = false, $chgrp = false) { 363 363 $this->debug("mkdir();");
Note: See TracChangeset
for help on using the changeset viewer.