src/SSHClient.php
public function login_key()
	{
		//TODO: add location for pub/private key files
		return ssh2_auth_pubkey_file($this->_conn_link, $this->_config['pub_key'], $this->_config['private_key'], $this->_config['passphrase']);
	}
public function login_key()
	{
		//TODO: add location for pub/private key files
		return ssh2_auth_pubkey_file($this->_conn_link, $this->_config['pub_key'], $this->_config['private_key'], $this->_config['passphrase']);
	}
public function login_key ( ) { //TODO: add location for pub/private key files return ssh2_auth_pubkey_file ( $ this -> _conn_link , $ this -> _config [ 'pub_key' ] , $ this -> _config [ 'private_key' ] , $ this -> _config [ 'passphrase' ] ) ; }
Login using a key

This will attempt to login using the provided user and a hash key.

@return bool TRUE on success, FALSE on failure
Login using a key