From 9eb1e8a12aba34e9d5accb62b67ca67795044447 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 30 Dec 2004 05:09:31 +0000 Subject: [PATCH] Additional Documentation: ssh2_shell(), ssh2_methods_negotiated(), and ssh2_tunnel() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175985 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/ssh2-methods-negotiated.xml | 40 ++++++++++++++++-- reference/ssh2/functions/ssh2-shell.xml | 41 +++++++++++++++++-- reference/ssh2/functions/ssh2-tunnel.xml | 27 ++++++++++-- 3 files changed, 97 insertions(+), 11 deletions(-) diff --git a/reference/ssh2/functions/ssh2-methods-negotiated.xml b/reference/ssh2/functions/ssh2-methods-negotiated.xml index 3f25b0c1e3..42f2d907a8 100644 --- a/reference/ssh2/functions/ssh2-methods-negotiated.xml +++ b/reference/ssh2/functions/ssh2-methods-negotiated.xml @@ -1,5 +1,5 @@ - + @@ -15,9 +15,41 @@ resourcesession - - Return list of negotiaed methods - + + Returns list of negotiaed methods. + + + + Determining what methods were negotiated + + +]]> + + + + + See Also: + ssh2_connect + diff --git a/reference/ssh2/functions/ssh2-shell.xml b/reference/ssh2/functions/ssh2-shell.xml index afe9b81db2..064faefc7c 100644 --- a/reference/ssh2/functions/ssh2-shell.xml +++ b/reference/ssh2/functions/ssh2-shell.xml @@ -1,5 +1,5 @@ - + @@ -20,9 +20,42 @@ intwidth_height_type - - Open a shell at the remote end and allocate a stream for it - + + Open a shell at the remote end and allocate a stream for it. + term_type should correspond to one of the entries + in the target system's /etc/termcap file and defaults to vanilla. + env may be passed as an associative array of name/value pairs + to set in the target environment. + + + + width, and height + define the width and height of the virtual terminal allocated for the shell process. + width_height_type should be one of + SSH2_TERM_UNIT_CHARS or + SSH2_TERM_UNIT_PIXELS. + + + + Executing a command + + +]]> + + + + + See Also: + ssh2_exec, + ssh2_tunnel, and + ssh2_fetch_stream + diff --git a/reference/ssh2/functions/ssh2-tunnel.xml b/reference/ssh2/functions/ssh2-tunnel.xml index fad1c230da..ecb1b6df2c 100644 --- a/reference/ssh2/functions/ssh2-tunnel.xml +++ b/reference/ssh2/functions/ssh2-tunnel.xml @@ -1,5 +1,5 @@ - + @@ -17,10 +17,31 @@ intport - + Open a socket stream to an arbitrary host/port by way of the currently connected SSH server. - + + + + Opening a tunnel to an arbitrary host + + +]]> + + + + + See Also: + ssh2_connect, and + fsockopen +