if you are trying to build this PECL extension because your distro does not already provide it.... then you need to apply a patch or else it won't "make". The problem is that libssh2 has changed the name and value of a conditional compile flag. See this bug for the fix.
http://pecl.php.net/bugs/bug.php?id=11779
P.S. if you are using Ubuntu 8.04 or earlier, the package request has already been filed.
Secure Shell2
- Introdução
- Instalação/Configuração
- Constantes pré-definidas
- SSH2 Funções
- ssh2_auth_hostbased_file — Authenticate using a public hostkey
- ssh2_auth_none — Authenticate as "none"
- ssh2_auth_password — Authenticate over SSH using a plain password
- ssh2_auth_pubkey_file — Authenticate using a public key
- ssh2_connect — Connect to an SSH server
- ssh2_exec — Execute a command on a remote server
- ssh2_fetch_stream — Fetch an extended data stream
- ssh2_fingerprint — Retrieve fingerprint of remote server
- ssh2_methods_negotiated — Return list of negotiated methods
- ssh2_publickey_add — Add an authorized publickey
- ssh2_publickey_init — Initialize Publickey subsystem
- ssh2_publickey_list — List currently authorized publickeys
- ssh2_publickey_remove — Remove an authorized publickey
- ssh2_scp_recv — Request a file via SCP
- ssh2_scp_send — Send a file via SCP
- ssh2_sftp_lstat — Stat a symbolic link
- ssh2_sftp_mkdir — Create a directory
- ssh2_sftp_readlink — Return the target of a symbolic link
- ssh2_sftp_realpath — Resolve the realpath of a provided path string
- ssh2_sftp_rename — Rename a remote file
- ssh2_sftp_rmdir — Remove a directory
- ssh2_sftp_stat — Stat a file on a remote filesystem
- ssh2_sftp_symlink — Create a symlink
- ssh2_sftp_unlink — Delete a file
- ssh2_sftp — Initialize SFTP subsystem
- ssh2_shell — Request an interactive shell
- ssh2_tunnel — Open a tunnel through a remote server
SSH2
codeslinger at compsalot dot com
06-Aug-2008 04:36
06-Aug-2008 04:36
tom at r dot je
03-Jul-2008 11:38
03-Jul-2008 11:38
As an alternative to using SSH2, it's easier to mount a remote file system ( http://ubuntu.wordpress.com/2005/10/28/
how-to-mount-a-remote-ssh-filesystem-using-sshfs/ ) and use the standard php copy() unlink() etc files.
