ssh2_sftp_mkdir

(PECL ssh2 >= 0.9.0) Create a directory bool ssh2_sftp_mkdir ( resource $sftp, string $dirname [, int $mode = 0777 [, bool $recursive = false ]] ) Creates a directory on the remote file server with permissions set to mode. This function is similar to using mkdir() with the ssh2.sftp:// wrapper. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp().

ssh2_sftp_lstat

(PECL ssh2 >= 0.9.0) Stat a symbolic link array ssh2_sftp_lstat ( resource $sftp, string $path ) Stats a symbolic link on the remote filesystem without following the link. This function is similar to using the lstat() function with the ssh2.sftp:// wrapper in PHP 5 and returns the same values. Parameters: sftp Stats a symbolic link on the remote filesystem without fo

ssh2_sftp_chmod

(PECL ssh2 >= 0.12) Changes file mode bool ssh2_sftp_chmod ( resource $sftp, string $filename, int $mode ) Attempts to change the mode of the specified file to that given in mode. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). filename Path to the file. mode Permissions on the file.

ssh2_scp_send

(PECL ssh2 >= 0.9.0) Send a file via SCP bool ssh2_scp_send ( resource $session, string $local_file, string $remote_file [, int $create_mode = 0644 ] ) Copy a file from the local filesystem to the remote server using the SCP protocol. Parameters: session An SSH connection link identifier, obtained from a call to ssh2_connect(). local_file

ssh2_scp_recv

(PECL ssh2 >= 0.9.0) Request a file via SCP bool ssh2_scp_recv ( resource $session, string $remote_file, string $local_file ) Copy a file from the remote server to the local filesystem using the SCP protocol. Parameters: session An SSH connection link identifier, obtained from a call to ssh2_connect(). remote_file Path to the remote

ssh2_publickey_remove

(PECL ssh2 >= 0.10) Remove an authorized publickey bool ssh2_publickey_remove ( resource $pkey, string $algoname, string $blob ) Removes an authorized publickey. Parameters: pkey Publickey Subsystem Resource algoname Publickey algorithm (e.g.): ssh-dss, ssh-rsa blob Publickey blob as raw binary d

ssh2_publickey_list

(PECL ssh2 >= 0.10) List currently authorized publickeys array ssh2_publickey_list ( resource $pkey ) List currently authorized publickeys. Parameters: pkey Publickey Subsystem resource Returns: Returns a numerically indexed array of keys, each of which is an associative array containing: name, blob, and attrs elements. Publickey elements A

ssh2_publickey_init

(PECL ssh2 >= 0.10) Initialize Publickey subsystem resource ssh2_publickey_init ( resource $session ) Request the Publickey subsystem from an already connected SSH2 server. The publickey subsystem allows an already connected and authenticated client to manage the list of authorized public keys stored on the target server in an implementation agnostic manner. If the remote server does not support the publickey subsyste

ssh2_publickey_add

(PECL ssh2 >= 0.10) Add an authorized publickey bool ssh2_publickey_add ( resource $pkey, string $algoname, string $blob [, bool $overwrite = false [, array $attributes ]] ) Note: The public key subsystem is used for managing public keys on a server to which the client is already authenticated. To authenticate to a remote system using public key authentication, use the ssh2_auth_pubkey_file() function instead.

ssh2_methods_negotiated

(PECL ssh2 >= 0.9.0) Return list of negotiated methods array ssh2_methods_negotiated ( resource $session ) Returns list of negotiated methods. Parameters: session An SSH connection link identifier, obtained from a call to ssh2_connect(). Returns: Examples: Determining what methods we