<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.ssh2.php',
    1 => 'SSH2',
    2 => 'Secure Shell2',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => 'Other Services',
  ),
  'prev' => 
  array (
    0 => 'class.addressinfo.php',
    1 => 'AddressInfo',
  ),
  'next' => 
  array (
    0 => 'ssh2.setup.php',
    1 => 'Installing/Configuring',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ssh2/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.ssh2.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.ssh2" class="book">
 
 <h1 class="title">Secure Shell2</h1>
 

 
 <div id="intro.ssh2" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="simpara">
   Bindings to the <a href="http://libssh2.org/" class="link external">&raquo;&nbsp;libssh2</a> library which
   provide access to resources (shell, remote exec, tunneling, file transfer)
   on a remote machine using a secure cryptographic transport.
  </p>
 </div>
 

 




 





 







<ul class="chunklist chunklist_book"><li><a href="ssh2.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ssh2.requirements.php">Requirements</a></li><li><a href="ssh2.installation.php">Installation</a></li><li><a href="ssh2.resources.php">Resource Types</a></li></ul></li><li><a href="ssh2.constants.php">Predefined Constants</a></li><li><a href="ref.ssh2.php">SSH2 Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.ssh2-auth-agent.php">ssh2_auth_agent</a> — Authenticate over SSH using the ssh agent</li><li><a href="function.ssh2-auth-hostbased-file.php">ssh2_auth_hostbased_file</a> — Authenticate using a public hostkey</li><li><a href="function.ssh2-auth-none.php">ssh2_auth_none</a> — Authenticate as &quot;none&quot;</li><li><a href="function.ssh2-auth-password.php">ssh2_auth_password</a> — Authenticate over SSH using a plain password</li><li><a href="function.ssh2-auth-pubkey.php">ssh2_auth_pubkey</a> — Authenticate using a public key in a variable</li><li><a href="function.ssh2-auth-pubkey-file.php">ssh2_auth_pubkey_file</a> — Authenticate using a public key read from a file</li><li><a href="function.ssh2-connect.php">ssh2_connect</a> — Connect to an SSH server</li><li><a href="function.ssh2-disconnect.php">ssh2_disconnect</a> — Close a connection to a remote SSH server</li><li><a href="function.ssh2-exec.php">ssh2_exec</a> — Execute a command on a remote server</li><li><a href="function.ssh2-fetch-stream.php">ssh2_fetch_stream</a> — Fetch an extended data stream</li><li><a href="function.ssh2-fingerprint.php">ssh2_fingerprint</a> — Retrieve fingerprint of remote server</li><li><a href="function.ssh2-forward-accept.php">ssh2_forward_accept</a> — Accept a connection created by a listener</li><li><a href="function.ssh2-forward-listen.php">ssh2_forward_listen</a> — Bind a port on the remote server and listen for connections</li><li><a href="function.ssh2-methods-negotiated.php">ssh2_methods_negotiated</a> — Return list of negotiated methods</li><li><a href="function.ssh2-poll.php">ssh2_poll</a> — Poll the channels/listeners/streams for events</li><li><a href="function.ssh2-publickey-add.php">ssh2_publickey_add</a> — Add an authorized publickey</li><li><a href="function.ssh2-publickey-init.php">ssh2_publickey_init</a> — Initialize Publickey subsystem</li><li><a href="function.ssh2-publickey-list.php">ssh2_publickey_list</a> — List currently authorized publickeys</li><li><a href="function.ssh2-publickey-remove.php">ssh2_publickey_remove</a> — Remove an authorized publickey</li><li><a href="function.ssh2-scp-recv.php">ssh2_scp_recv</a> — Request a file via SCP</li><li><a href="function.ssh2-scp-send.php">ssh2_scp_send</a> — Send a file via SCP</li><li><a href="function.ssh2-send-eof.php">ssh2_send_eof</a> — Send EOF to stream</li><li><a href="function.ssh2-sftp.php">ssh2_sftp</a> — Initialize SFTP subsystem</li><li><a href="function.ssh2-sftp-chmod.php">ssh2_sftp_chmod</a> — Changes file mode</li><li><a href="function.ssh2-sftp-lstat.php">ssh2_sftp_lstat</a> — Stat a symbolic link</li><li><a href="function.ssh2-sftp-mkdir.php">ssh2_sftp_mkdir</a> — Create a directory</li><li><a href="function.ssh2-sftp-readlink.php">ssh2_sftp_readlink</a> — Return the target of a symbolic link</li><li><a href="function.ssh2-sftp-realpath.php">ssh2_sftp_realpath</a> — Resolve the realpath of a provided path string</li><li><a href="function.ssh2-sftp-rename.php">ssh2_sftp_rename</a> — Rename a remote file</li><li><a href="function.ssh2-sftp-rmdir.php">ssh2_sftp_rmdir</a> — Remove a directory</li><li><a href="function.ssh2-sftp-stat.php">ssh2_sftp_stat</a> — Stat a file on a remote filesystem</li><li><a href="function.ssh2-sftp-symlink.php">ssh2_sftp_symlink</a> — Create a symlink</li><li><a href="function.ssh2-sftp-unlink.php">ssh2_sftp_unlink</a> — Delete a file</li><li><a href="function.ssh2-shell.php">ssh2_shell</a> — Request an interactive shell</li><li><a href="function.ssh2-tunnel.php">ssh2_tunnel</a> — Open a tunnel through a remote server</li></ul></li></ul></div><?php manual_footer($setup); ?>