ssh2_tunnel

(PECL ssh2 >= 0.9.0) Open a tunnel through a remote server resource ssh2_tunnel ( resource $session, string $host, int $port ) Open a socket stream to an arbitrary host/port by way of the currently connected SSH server. Parameters: session An SSH connection link identifier, obtained from a call to ssh2_connect(). host An SSH connecti

ssh2_shell

(PECL ssh2 >= 0.9.0) Request an interactive shell resource ssh2_shell ( resource $session [, string $term_type = "vanilla" [, array $env [, int $width = 80 [, int $height = 25 [, int $width_height_type = SSH2_TERM_UNIT_CHARS ]]]]] ) Open a shell at the remote end and allocate a stream for it. Parameters: session An SSH connection link identifier, obtained from a ca

ssh2_sftp

(PECL ssh2 >= 0.9.0) Initialize SFTP subsystem resource ssh2_sftp ( resource $session ) Request the SFTP subsystem from an already connected SSH2 server. Parameters: session An SSH connection link identifier, obtained from a call to ssh2_connect(). Returns: This method returns an SSH2 SFTP resource for use with all other ssh2_sftp_*() methods

ssh2_sftp_unlink

(PECL ssh2 >= 0.9.0) Delete a file bool ssh2_sftp_unlink ( resource $sftp, string $filename ) Deletes a file on the remote filesystem. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). filename An SSH2 SFTP resource opened by ssh2_sftp(). Returns: Returns TRUE on success or FALSE on failure.

ssh2_sftp_symlink

(PECL ssh2 >= 0.9.0) Create a symlink bool ssh2_sftp_symlink ( resource $sftp, string $target, string $link ) Creates a symbolic link named link on the remote filesystem pointing to target. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). target Target of the symbolic link. link Target

ssh2_sftp_stat

(PECL ssh2 >= 0.9.0) Stat a file on a remote filesystem array ssh2_sftp_stat ( resource $sftp, string $path ) Stats a file on the remote filesystem following any symbolic links. This function is similar to using the stat() function with the ssh2.sftp:// wrapper in PHP 5 and returns the same values. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp().

ssh2_sftp_rmdir

(PECL ssh2 >= 0.9.0) Remove a directory bool ssh2_sftp_rmdir ( resource $sftp, string $dirname ) Removes a directory from the remote file server. This function is similar to using rmdir() with the ssh2.sftp:// wrapper. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). dirname An SSH2 SFTP resource opened by ssh2_sftp().

ssh2_sftp_rename

(PECL ssh2 >= 0.9.0) Rename a remote file bool ssh2_sftp_rename ( resource $sftp, string $from, string $to ) Renames a file on the remote filesystem. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). from The current file that is being renamed. to The new file name that replaces from.

ssh2_sftp_realpath

(PECL ssh2 >= 0.9.0) Resolve the realpath of a provided path string string ssh2_sftp_realpath ( resource $sftp, string $filename ) Translates filename into the effective real path on the remote filesystem. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). filename An SSH2 SFTP resource opened by ssh2_sftp().

ssh2_sftp_readlink

(PECL ssh2 >= 0.9.0) Return the target of a symbolic link string ssh2_sftp_readlink ( resource $sftp, string $link ) Returns the target of a symbolic link. Parameters: sftp An SSH2 SFTP resource opened by ssh2_sftp(). link Path of the symbolic link. Returns: Returns the target of the symbolic link.