PHP 手冊
前一頁 |  | 下一頁

# CXIX. Secure Shell2 Functions

# 介紹

Bindings to the libssh2 library which provide access to resources (shell, remote exec, tunneling, file transfer) on a remote machine using a secure cryptographic transport.

# 安裝

Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/ssh2.

You will also need version 0.4 or greater of the libssh2 library (possibly higher, see release notes).

# 預先定義常數

以下的常數由此延伸定義，只在這個延伸被編譯成PHP或實行時期被動態載入時有效。

`SSH2_FINGERPRINT_MD5` (integer)

  Flag to ssh2_fingerprint() requesting hostkey fingerprint as an MD5 hash.

`SSH2_FINGERPRINT_SHA1` (integer)

  Flag to ssh2_fingerprint() requesting hostkey fingerprint as an SHA1 hash.

`SSH2_FINGERPRINT_HEX` (integer)

  Flag to ssh2_fingerprint() requesting hostkey fingerprint as a string of hexits.

`SSH2_FINGERPRINT_RAW` (integer)

  Flag to ssh2_fingerprint() requesting hostkey fingerprint as a raw string of 8-bit characters.

`SSH2_TERM_UNIT_CHARS` (integer)

  Flag to ssh2_shell() specifying that width and height are provided as character sizes.

`SSH2_TERM_UNIT_PIXELS` (integer)

  Flag to ssh2_shell() specifying that width and height are provided in pixel units.

`SSH2_DEFAULT_TERM_WIDTH` (integer)

  Default terminal width requested by ssh2_shell().

`SSH2_DEFAULT_TERM_HEIGHT` (integer)

  Default terminal height requested by ssh2_shell().

`SSH2_DEFAULT_TERM_UNIT` (integer)

  Default terminal units requested by ssh2_shell().

`SSH2_STREAM_STDIO` (integer)

  Flag to ssh2_fetch_stream() requesting STDIO subchannel.

`SSH2_STREAM_STDERR` (integer)

  Flag to ssh2_fetch_stream() requesting STDERR subchannel.

`SSH2_DEFAULT_TERMINAL` (string)

  Default terminal type (e.g. vt102, ansi, xterm, vanilla) requested by ssh2_shell().

前一頁 | 內容 | 下一頁
sqlite_valid | 上一層 | ssh2_auth_hostbased_file