Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Introduction »
« AddressInfo
PHP Manual
Function Reference
Other Services
Change language:
English
Chinese (Simplified)
Other
Secure Shell2
Introduction
Installing/Configuring
Requirements
Installation
Runtime Configuration
Resource Types
Predefined Constants
SSH2 Functions
ssh2_auth_agent
— Authenticate over SSH using the ssh agent
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_disconnect
— Close a connection to a remote 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_forward_accept
— Accept a connection created by a listener
ssh2_forward_listen
— Bind a port on the remote server and listen for connections
ssh2_methods_negotiated
— Return list of negotiated methods
ssh2_poll
— Poll the channels/listeners/streams for events
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_send_eof
— Send EOF to stream
ssh2_sftp_chmod
— Changes file mode
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
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.