PHP Класс Net_SSH2, TeamPass

Автор: Jim Wigginton ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$agent System_SSH_Agent A System_SSH_Agent for use in the SSH2 Agent Forwarding scenario
$banner_message string Quoting from the RFC, "in some jurisdictions, sending a warning message before authentication may be relevant for getting legal protection."
$bitmap integer The bits that are set represent functions that have been called already. This is used to determine if a requisite function has been successfully executed. If not, an error should be thrown.
$channel_buffers array If a client requests a packet from one channel but receives two packets from another those packets should be placed in a buffer
$channel_extended_data_type_codes array SSH_MSG_CHANNEL_EXTENDED_DATA's data_type_codes
$channel_open_failure_reasons array SSH_MSG_CHANNEL_OPEN_FAILURE 'reason codes', defined in RFC4254
$channel_status array Contains the type of the last sent message
$compression_algorithms_client_to_server array | false Compression Algorithms: Client to Server
$compression_algorithms_server_to_client array | false Compression Algorithms: Server to Client
$crypto_engine integer Crypto Engine
$curTimeout Current Timeout
$decrypt object Server to Client Encryption Object
$decrypt_block_size integer Block Size for Client to Server Encryption
$disconnect_reasons array Disconnection Message 'reason codes' defined in RFC4253
$encrypt object Client to Server Encryption Object
$encrypt_block_size integer "Note that the length of the concatenation of 'packet_length', 'padding_length', 'payload', and 'random padding' MUST be a multiple of the cipher block size or 8, whichever is larger. This constraint MUST be enforced, even when using stream ciphers." -- http://tools.ietf.org/html/rfc4253#section-6
$encryption_algorithms_client_to_server array | false Encryption Algorithms: Client to Server
$encryption_algorithms_server_to_client array | false Encryption Algorithms: Server to Client
$errors string Error information
$exchange_hash string The current exchange hash
$exit_status integer Exit status returned from ssh if any
$fsock object The Socket Object
$get_seq_no integer See 'Section 6.4. Data Integrity' of rfc4253 for more info.
$hmac_check object Server to Client HMAC Object
$hmac_create object Client to Server HMAC Object
$hmac_size integer We need to know how big the HMAC will be for the server to client direction so that we know how many bytes to read. For the client to server side, the HMAC object will make the HMAC as long as it needs to be. All we need to do is append it.
$host string Hostname
$identifier string The SSH identifier
$in_request_pty_exec boolean Flag set while exec() is running when using enablePTY()
$in_subsystem boolean Flag set after startSubsystem() is called
$interactiveBuffer array Interactive Buffer
$is_timeout boolean Did read() timeout or return normally?
$kex_algorithms array | false Key Exchange Algorithms
$kex_dh_group_size_max integer Maximum Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
$kex_dh_group_size_min integer Minimum Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
$kex_dh_group_size_preferred integer Preferred Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
$keyboard_requests_responses array Keyboard Interactive Request / Responses
$languages_client_to_server array | false Languages: Client to Server
$languages_server_to_client array | false Languages: Server to Client
$last_interactive_response string The Last Interactive Response
$last_packet integer Time of first network activity
$log_boundary string Log Boundary
$log_long_width integer Log Long Width
$log_short_width integer Log Short Width
$log_size integer Should never exceed NET_SSH2_LOG_MAX_SIZE
$mac_algorithms_client_to_server array | false MAC Algorithms: Client to Server
$mac_algorithms_server_to_client array | false MAC Algorithms: Server to Client
$message_log array Message Log
$message_number_log array Message Number Log
$message_numbers array Message Numbers
$packet_size_client_to_server array Maximum packet size indexed by channel
$port integer Port Number
$quiet_mode Flag to suppress stderr from output
$realtime_log_file resource Real-time log file pointer
$realtime_log_size integer Real-time log file size
$realtime_log_wrap Real-time log file wrap boolean
$request_pty boolean Flag to request a PTY when using exec()
$send_seq_no integer See 'Section 6.4. Data Integrity' of rfc4253 for more info.
$server_channels array Maps client channels to server channels
$server_host_key_algorithms array | false Server Host Key Algorithms
$server_identifier array | false Server Identifier
$server_public_host_key string Server Public Host Key
$session_id string "The exchange hash H from the first key exchange is additionally used as the session identifier, which is a unique identifier for this connection." -- http://tools.ietf.org/html/rfc4253#section-7.2
$signature string Verified against $this->session_id
$signature_format string ssh-rsa or ssh-dss.
$signature_validated boolean Has the signature been validated?
$stdErrorLog string Contents of stdError
$terminal_modes array Terminal Modes
$timeout Timeout
$windowColumns integer Number of columns for terminal window size
$windowRows integer Number of columns for terminal window size
$window_size integer Bytes the other party can send before it must wait for the window to be adjusted (0x7FFFFFFF = 2GB)
$window_size_client_to_server array Window size indexed by channel
$window_size_server_to_client array Window size indexed by channel

Открытые методы

Метод Описание
Net_SSH2 ( mixed $host, integer $port = 22, integer $timeout = 10 ) : Net_SSH2 Default Constructor.
__destruct ( ) Destructor.
_append_log ( $message_number, $message ) Logs data packets
_array_intersect_first ( array $array1, array $array2 ) : mixed Returns the first value of the intersection of two arrays or false if the intersection is empty. The order is defined by the first parameter.
_close_channel ( integer $client_channel, boolean $want_reply = false ) : boolean Closes and flushes a channel
_connect ( ) : boolean Connect to an SSHv2 server
_define_array ( ) Define Array
_disconnect ( integer $reason ) : boolean Disconnect
_encryption_algorithm_to_key_size ( string $algorithm ) : integer | null Maps an encryption algorithm name to the number of key bytes.
_filter ( $payload ) : string Filter Binary Packets
_format_log ( array $message_log, array $message_number_log ) : string Formats a log for printing
_format_log_helper ( array $matches ) : string Helper function for _format_log
_generate_identifier ( ) : string Generates the SSH identifier
_get_binary_packet ( ) : string Gets Binary Packets
_get_channel_packet ( $client_channel, $skip_extended = false ) : mixed Gets channel data
_get_interactive_channel ( ) : integer Return the channel to be used with read() / write()
_get_open_channel ( ) : integer Return an available open channel
_initShell ( ) : boolean Creates an interactive shell
_key_exchange ( string $kexinit_payload_server ) Key Exchange
_keyboard_interactive_login ( string $username, string $password ) : boolean Login via keyboard-interactive authentication
_keyboard_interactive_process ( ) : boolean Handle the keyboard-interactive requests / responses.
_login ( string $username ) : boolean Login Helper
_login_helper ( string $username, string $password = null ) : boolean Login Helper
_on_channel_open ( ) Helper function for agent->_on_channel_open()
_privatekey_login ( string $username, $privatekey ) : boolean Login with an RSA private key
_send_binary_packet ( string $data, string $logged = null ) : boolean Sends Binary Packets
_send_channel_packet ( integer $client_channel, string $data ) : boolean Sends channel data
_ssh_agent_login ( string $username, System_SSH_Agent $agent ) : boolean Login with an ssh-agent provided key
_string_shift ( string &$string, integer $index = 1 ) : string String Shift
disablePTY ( ) Disable request-pty when using exec()
disableQuietMode ( ) Disable Quiet Mode
disconnect ( ) Disconnect
enablePTY ( ) Enable request-pty when using exec()
enableQuietMode ( ) Enable Quiet Mode
exec ( string $command, Callback $callback = null ) : string Execute Command
getBannerMessage ( ) : string Returns the banner message.
getCompressionAlgorithmsClient2Server ( ) : array Return a list of the compression algorithms the server supports, when receiving stuff from the client.
getCompressionAlgorithmsServer2Client ( ) : array Return a list of the compression algorithms the server supports, when sending stuff to the client.
getEncryptionAlgorithmsClient2Server ( ) : array Return a list of the (symmetric key) encryption algorithms the server supports, when receiving stuff from the client.
getEncryptionAlgorithmsServer2Client ( ) : array Return a list of the (symmetric key) encryption algorithms the server supports, when sending stuff to the client.
getErrors ( ) : string Returns all errors
getExitStatus ( ) : false | integer Returns the exit status of an SSH command or false.
getKexAlgorithms ( ) : array Return a list of the key exchange algorithms the server supports.
getLanguagesClient2Server ( ) : array Return a list of the languages the server supports, when receiving stuff from the client.
getLanguagesServer2Client ( ) : array Return a list of the languages the server supports, when sending stuff to the client.
getLastError ( ) : string Returns the last error
getLog ( ) : array | false | string Returns a log of the packets that have been sent and received.
getMACAlgorithmsClient2Server ( ) : array Return a list of the MAC algorithms the server supports, when receiving stuff from the client.
getMACAlgorithmsServer2Client ( ) : array Return a list of the MAC algorithms the server supports, when sending stuff to the client.
getServerHostKeyAlgorithms ( ) : array Return a list of the host key (public key) algorithms the server supports.
getServerIdentification ( ) : string Return the server identification.
getServerPublicHostKey ( ) : mixed Returns the server public host key.
getStdError ( ) Get the output from stdError
getWindowColumns ( ) : integer Returns the number of columns for the terminal window size.
getWindowRows ( ) : integer Returns the number of rows for the terminal window size.
isAuthenticated ( ) : boolean Have you successfully been logged in?
isConnected ( ) : boolean Is the connection still active?
isPTYEnabled ( ) : boolean Returns whether request-pty is enabled or not
isQuietModeEnabled ( ) : boolean Returns whether Quiet Mode is enabled or not
isTimeout ( ) Is timeout?
login ( string $username ) : boolean Login
read ( string $expect = '', integer $mode = NET_SSH2_READ_SIMPLE ) : string Returns the output of an interactive shell
reset ( ) Closes a channel
setCryptoEngine ( integer $engine ) Set Crypto Engine Mode
setTimeout ( mixed $timeout ) Set Timeout
setWindowColumns ( integer $value ) Sets the number of columns for the terminal window size.
setWindowRows ( integer $value ) Sets the number of rows for the terminal window size.
setWindowSize ( integer $columns = 80, integer $rows = 24 ) Sets the number of columns and rows for the terminal window size.
startSubsystem ( string $subsystem ) : boolean Start a subsystem.
stopSubsystem ( ) : boolean Stops a subsystem.
write ( string $cmd ) : boolean Inputs a command into an interactive shell.

Описание методов

Net_SSH2() публичный Метод

$host can either be a string, representing the host, or a stream resource.
См. также: self::login()
public Net_SSH2 ( mixed $host, integer $port = 22, integer $timeout = 10 ) : Net_SSH2
$host mixed
$port integer
$timeout integer
Результат Net_SSH2

__destruct() публичный Метод

Will be called, automatically, if you're supporting just PHP5. If you're supporting PHP4, you'll need to call disconnect().
public __destruct ( )

_append_log() публичный Метод

Makes sure that only the last 1MB worth of packets will be logged
public _append_log ( $message_number, $message )

_array_intersect_first() публичный Метод

Returns the first value of the intersection of two arrays or false if the intersection is empty. The order is defined by the first parameter.
public _array_intersect_first ( array $array1, array $array2 ) : mixed
$array1 array
$array2 array
Результат mixed False if intersection is empty, else intersected value.

_close_channel() публичный Метод

Net_SSH2 doesn't properly close most channels. For exec() channels are normally closed by the server and for SFTP channels are presumably closed when the client disconnects. This functions is intended for SCP more than anything.
public _close_channel ( integer $client_channel, boolean $want_reply = false ) : boolean
$client_channel integer
$want_reply boolean
Результат boolean

_connect() публичный Метод

Connect to an SSHv2 server
public _connect ( ) : boolean
Результат boolean

_define_array() публичный Метод

Takes any number of arrays whose indices are integers and whose values are strings and defines a bunch of named constants from it, using the value as the name of the constant and the index as the value of the constant. If any of the constants that would be defined already exists, none of the constants will be defined.
public _define_array ( )

_disconnect() публичный Метод

Disconnect
public _disconnect ( integer $reason ) : boolean
$reason integer
Результат boolean

_encryption_algorithm_to_key_size() публичный Метод

Maps an encryption algorithm name to the number of key bytes.
public _encryption_algorithm_to_key_size ( string $algorithm ) : integer | null
$algorithm string Name of the encryption algorithm
Результат integer | null Number of bytes as an integer or null for unknown

_filter() публичный Метод

Because some binary packets need to be ignored...
См. также: self::_get_binary_packet()
public _filter ( $payload ) : string
Результат string

_format_log() публичный Метод

Formats a log for printing
public _format_log ( array $message_log, array $message_number_log ) : string
$message_log array
$message_number_log array
Результат string

_format_log_helper() публичный Метод

For use with preg_replace_callback()
public _format_log_helper ( array $matches ) : string
$matches array
Результат string

_generate_identifier() публичный Метод

You should overwrite this method in your own class if you want to use another identifier
public _generate_identifier ( ) : string
Результат string

_get_binary_packet() публичный Метод

See '6. Binary Packet Protocol' of rfc4253 for more info.
См. также: self::_send_binary_packet()
public _get_binary_packet ( ) : string
Результат string

_get_channel_packet() публичный Метод

Returns the data as a string if it's available and false if not.
public _get_channel_packet ( $client_channel, $skip_extended = false ) : mixed
$client_channel
Результат mixed

_get_interactive_channel() публичный Метод

Return the channel to be used with read() / write()
См. также: self::read()
См. также: self::write()
public _get_interactive_channel ( ) : integer
Результат integer

_get_open_channel() публичный Метод

Return an available open channel
public _get_open_channel ( ) : integer
Результат integer

_initShell() публичный Метод

Creates an interactive shell
См. также: self::read()
См. также: self::write()
public _initShell ( ) : boolean
Результат boolean

_key_exchange() публичный Метод

Key Exchange
public _key_exchange ( string $kexinit_payload_server )
$kexinit_payload_server string

_keyboard_interactive_login() публичный Метод

See {@link http://tools.ietf.org/html/rfc4256 RFC4256} for details. This is not a full-featured keyboard-interactive authenticator.
public _keyboard_interactive_login ( string $username, string $password ) : boolean
$username string
$password string
Результат boolean

_keyboard_interactive_process() публичный Метод

Handle the keyboard-interactive requests / responses.
public _keyboard_interactive_process ( ) : boolean
Результат boolean

_login() публичный Метод

Login Helper
См. также: self::_login_helper()
public _login ( string $username ) : boolean
$username string
Результат boolean

_login_helper() публичный Метод

Login Helper
public _login_helper ( string $username, string $password = null ) : boolean
$username string
$password string
Результат boolean

_on_channel_open() публичный Метод

Used when channels are created to inform agent of said channel opening. Must be called after channel open confirmation received
public _on_channel_open ( )

_privatekey_login() публичный Метод

Login with an RSA private key
public _privatekey_login ( string $username, $privatekey ) : boolean
$username string
Результат boolean

_send_binary_packet() публичный Метод

See '6. Binary Packet Protocol' of rfc4253 for more info.
См. также: self::_get_binary_packet()
public _send_binary_packet ( string $data, string $logged = null ) : boolean
$data string
$logged string
Результат boolean

_send_channel_packet() публичный Метод

Spans multiple SSH_MSG_CHANNEL_DATAs if appropriate
public _send_channel_packet ( integer $client_channel, string $data ) : boolean
$client_channel integer
$data string
Результат boolean

_ssh_agent_login() публичный Метод

Login with an ssh-agent provided key
public _ssh_agent_login ( string $username, System_SSH_Agent $agent ) : boolean
$username string
$agent System_SSH_Agent
Результат boolean

_string_shift() публичный Метод

Inspired by array_shift
public _string_shift ( string &$string, integer $index = 1 ) : string
$string string
$index integer
Результат string

disablePTY() публичный Метод

Disable request-pty when using exec()
public disablePTY ( )

disableQuietMode() публичный Метод

Show stderr in output
public disableQuietMode ( )

disconnect() публичный Метод

Disconnect
public disconnect ( )

enablePTY() публичный Метод

Enable request-pty when using exec()
public enablePTY ( )

enableQuietMode() публичный Метод

Suppress stderr from output
public enableQuietMode ( )

exec() публичный Метод

If $callback is set to false then Net_SSH2::_get_channel_packet(NET_SSH2_CHANNEL_EXEC) will need to be called manually. In all likelihood, this is not a feature you want to be taking advantage of.
public exec ( string $command, Callback $callback = null ) : string
$command string
$callback Callback
Результат string

getBannerMessage() публичный Метод

Quoting from the RFC, "in some jurisdictions, sending a warning message before authentication may be relevant for getting legal protection."
public getBannerMessage ( ) : string
Результат string

getCompressionAlgorithmsClient2Server() публичный Метод

Return a list of the compression algorithms the server supports, when receiving stuff from the client.
public getCompressionAlgorithmsClient2Server ( ) : array
Результат array

getCompressionAlgorithmsServer2Client() публичный Метод

Return a list of the compression algorithms the server supports, when sending stuff to the client.
public getCompressionAlgorithmsServer2Client ( ) : array
Результат array

getEncryptionAlgorithmsClient2Server() публичный Метод

Return a list of the (symmetric key) encryption algorithms the server supports, when receiving stuff from the client.
public getEncryptionAlgorithmsClient2Server ( ) : array
Результат array

getEncryptionAlgorithmsServer2Client() публичный Метод

Return a list of the (symmetric key) encryption algorithms the server supports, when sending stuff to the client.
public getEncryptionAlgorithmsServer2Client ( ) : array
Результат array

getErrors() публичный Метод

Returns all errors
public getErrors ( ) : string
Результат string

getExitStatus() публичный Метод

Returns the exit status of an SSH command or false.
public getExitStatus ( ) : false | integer
Результат false | integer

getKexAlgorithms() публичный Метод

Return a list of the key exchange algorithms the server supports.
public getKexAlgorithms ( ) : array
Результат array

getLanguagesClient2Server() публичный Метод

Return a list of the languages the server supports, when receiving stuff from the client.
public getLanguagesClient2Server ( ) : array
Результат array

getLanguagesServer2Client() публичный Метод

Return a list of the languages the server supports, when sending stuff to the client.
public getLanguagesServer2Client ( ) : array
Результат array

getLastError() публичный Метод

Returns the last error
public getLastError ( ) : string
Результат string

getLog() публичный Метод

Returns a string if NET_SSH2_LOGGING == NET_SSH2_LOG_COMPLEX, an array if NET_SSH2_LOGGING == NET_SSH2_LOG_SIMPLE and false if !defined('NET_SSH2_LOGGING')
public getLog ( ) : array | false | string
Результат array | false | string

getMACAlgorithmsClient2Server() публичный Метод

Return a list of the MAC algorithms the server supports, when receiving stuff from the client.
public getMACAlgorithmsClient2Server ( ) : array
Результат array

getMACAlgorithmsServer2Client() публичный Метод

Return a list of the MAC algorithms the server supports, when sending stuff to the client.
public getMACAlgorithmsServer2Client ( ) : array
Результат array

getServerHostKeyAlgorithms() публичный Метод

Return a list of the host key (public key) algorithms the server supports.
public getServerHostKeyAlgorithms ( ) : array
Результат array

getServerIdentification() публичный Метод

Return the server identification.
public getServerIdentification ( ) : string
Результат string

getServerPublicHostKey() публичный Метод

Caching this the first time you connect to a server and checking the result on subsequent connections is recommended. Returns false if the server signature is not signed correctly with the public host key.
public getServerPublicHostKey ( ) : mixed
Результат mixed

getStdError() публичный Метод

Get the output from stdError
public getStdError ( )

getWindowColumns() публичный Метод

Returns the number of columns for the terminal window size.
public getWindowColumns ( ) : integer
Результат integer

getWindowRows() публичный Метод

Returns the number of rows for the terminal window size.
public getWindowRows ( ) : integer
Результат integer

isAuthenticated() публичный Метод

Have you successfully been logged in?
public isAuthenticated ( ) : boolean
Результат boolean

isConnected() публичный Метод

Is the connection still active?
public isConnected ( ) : boolean
Результат boolean

isPTYEnabled() публичный Метод

Returns whether request-pty is enabled or not
См. также: self::enablePTY()
См. также: self::disablePTY()
public isPTYEnabled ( ) : boolean
Результат boolean

isQuietModeEnabled() публичный Метод

Returns whether Quiet Mode is enabled or not
См. также: self::enableQuietMode()
См. также: self::disableQuietMode()
public isQuietModeEnabled ( ) : boolean
Результат boolean

isTimeout() публичный Метод

Did exec() or read() return because they timed out or because they encountered the end?
public isTimeout ( )

login() публичный Метод

The $password parameter can be a plaintext password, a Crypt_RSA object or an array
См. также: self::_login()
public login ( string $username ) : boolean
$username string
Результат boolean

read() публичный Метод

Returns when there's a match for $expect, which can take the form of a string literal or, if $mode == NET_SSH2_READ_REGEX, a regular expression.
См. также: self::write()
public read ( string $expect = '', integer $mode = NET_SSH2_READ_SIMPLE ) : string
$expect string
$mode integer
Результат string

reset() публичный Метод

If read() timed out you might want to just close the channel and have it auto-restart on the next read() call
public reset ( )

setCryptoEngine() публичный Метод

Possible $engine values: CRYPT_MODE_INTERNAL, CRYPT_MODE_MCRYPT
public setCryptoEngine ( integer $engine )
$engine integer

setTimeout() публичный Метод

$ssh->exec('ping 127.0.0.1'); on a Linux host will never return and will run indefinitely. setTimeout() makes it so it'll timeout. Setting $timeout to false or 0 will mean there is no timeout.
public setTimeout ( mixed $timeout )
$timeout mixed

setWindowColumns() публичный Метод

Sets the number of columns for the terminal window size.
public setWindowColumns ( integer $value )
$value integer

setWindowRows() публичный Метод

Sets the number of rows for the terminal window size.
public setWindowRows ( integer $value )
$value integer

setWindowSize() публичный Метод

Sets the number of columns and rows for the terminal window size.
public setWindowSize ( integer $columns = 80, integer $rows = 24 )
$columns integer
$rows integer

startSubsystem() публичный Метод

Right now only one subsystem at a time is supported. To support multiple subsystem's stopSubsystem() could accept a string that contained the name of the subsystem, but at that point, only one subsystem of each type could be opened. To support multiple subsystem's of the same name maybe it'd be best if startSubsystem() generated a new channel id and returns that and then that that was passed into stopSubsystem() but that'll be saved for a future date and implemented if there's sufficient demand for such a feature.
См. также: self::stopSubsystem()
public startSubsystem ( string $subsystem ) : boolean
$subsystem string
Результат boolean

stopSubsystem() публичный Метод

Stops a subsystem.
См. также: self::startSubsystem()
public stopSubsystem ( ) : boolean
Результат boolean

write() публичный Метод

Inputs a command into an interactive shell.
См. также: self::read()
public write ( string $cmd ) : boolean
$cmd string
Результат boolean

Описание свойств

$agent публичное свойство

A System_SSH_Agent for use in the SSH2 Agent Forwarding scenario
public System_SSH_Agent $agent
Результат System_SSH_Agent

$banner_message публичное свойство

Quoting from the RFC, "in some jurisdictions, sending a warning message before authentication may be relevant for getting legal protection."
См. также: self::_filter()
См. также: self::getBannerMessage()
public string $banner_message
Результат string

$bitmap публичное свойство

The bits that are set represent functions that have been called already. This is used to determine if a requisite function has been successfully executed. If not, an error should be thrown.
public int $bitmap
Результат integer

$channel_buffers публичное свойство

If a client requests a packet from one channel but receives two packets from another those packets should be placed in a buffer
См. также: self::_get_channel_packet()
См. также: self::exec()
public array $channel_buffers
Результат array

$channel_extended_data_type_codes публичное свойство

SSH_MSG_CHANNEL_EXTENDED_DATA's data_type_codes
См. также: self::Net_SSH2()
public array $channel_extended_data_type_codes
Результат array

$channel_open_failure_reasons публичное свойство

SSH_MSG_CHANNEL_OPEN_FAILURE 'reason codes', defined in RFC4254
См. также: self::Net_SSH2()
public array $channel_open_failure_reasons
Результат array

$channel_status публичное свойство

Contains the type of the last sent message
См. также: self::_get_channel_packet()
public array $channel_status
Результат array

$compression_algorithms_client_to_server публичное свойство

Compression Algorithms: Client to Server
См. также: self::getCompressionAlgorithmsClient2Server()
public array|false $compression_algorithms_client_to_server
Результат array | false

$compression_algorithms_server_to_client публичное свойство

Compression Algorithms: Server to Client
См. также: self::getCompressionAlgorithmsServer2Client()
public array|false $compression_algorithms_server_to_client
Результат array | false

$crypto_engine публичное свойство

Crypto Engine
См. также: self::setCryptoEngine()
См. также: self::_key_exchange()
public int $crypto_engine
Результат integer

$curTimeout публичное свойство

Current Timeout
См. также: self::_get_channel_packet()
public $curTimeout

$decrypt публичное свойство

Server to Client Encryption Object
См. также: self::_get_binary_packet()
public object $decrypt
Результат object

$decrypt_block_size публичное свойство

Block Size for Client to Server Encryption
См. также: self::Net_SSH2()
См. также: self::_get_binary_packet()
public int $decrypt_block_size
Результат integer

$disconnect_reasons публичное свойство

Disconnection Message 'reason codes' defined in RFC4253
См. также: self::Net_SSH2()
public array $disconnect_reasons
Результат array

$encrypt публичное свойство

Client to Server Encryption Object
См. также: self::_send_binary_packet()
public object $encrypt
Результат object

$encrypt_block_size публичное свойство

"Note that the length of the concatenation of 'packet_length', 'padding_length', 'payload', and 'random padding' MUST be a multiple of the cipher block size or 8, whichever is larger. This constraint MUST be enforced, even when using stream ciphers." -- http://tools.ietf.org/html/rfc4253#section-6
См. также: self::Net_SSH2()
См. также: self::_send_binary_packet()
public int $encrypt_block_size
Результат integer

$encryption_algorithms_client_to_server публичное свойство

Encryption Algorithms: Client to Server
См. также: self::getEncryptionAlgorithmsClient2Server()
public array|false $encryption_algorithms_client_to_server
Результат array | false

$encryption_algorithms_server_to_client публичное свойство

Encryption Algorithms: Server to Client
См. также: self::getEncryptionAlgorithmsServer2Client()
public array|false $encryption_algorithms_server_to_client
Результат array | false

$errors публичное свойство

Error information
См. также: self::getErrors()
См. также: self::getLastError()
public string $errors
Результат string

$exchange_hash публичное свойство

The current exchange hash
См. также: self::_key_exchange()
public string $exchange_hash
Результат string

$exit_status публичное свойство

Exit status returned from ssh if any
public int $exit_status
Результат integer

$fsock публичное свойство

The Socket Object
public object $fsock
Результат object

$get_seq_no публичное свойство

See 'Section 6.4. Data Integrity' of rfc4253 for more info.
См. также: self::_get_binary_packet()
public int $get_seq_no
Результат integer

$hmac_check публичное свойство

Server to Client HMAC Object
См. также: self::_get_binary_packet()
public object $hmac_check
Результат object

$hmac_create публичное свойство

Client to Server HMAC Object
См. также: self::_send_binary_packet()
public object $hmac_create
Результат object

$hmac_size публичное свойство

We need to know how big the HMAC will be for the server to client direction so that we know how many bytes to read. For the client to server side, the HMAC object will make the HMAC as long as it needs to be. All we need to do is append it.
См. также: self::_get_binary_packet()
public int $hmac_size
Результат integer

$host публичное свойство

Hostname
См. также: self::Net_SSH2()
См. также: self::_connect()
public string $host
Результат string

$identifier публичное свойство

The SSH identifier
public string $identifier
Результат string

$in_request_pty_exec публичное свойство

Flag set while exec() is running when using enablePTY()
public bool $in_request_pty_exec
Результат boolean

$in_subsystem публичное свойство

Flag set after startSubsystem() is called
public bool $in_subsystem
Результат boolean

$interactiveBuffer публичное свойство

Interactive Buffer
См. также: self::read()
public array $interactiveBuffer
Результат array

$is_timeout публичное свойство

Did read() timeout or return normally?
См. также: self::isTimeout()
public bool $is_timeout
Результат boolean

$kex_algorithms публичное свойство

Key Exchange Algorithms
См. также: self::getKexAlgorithims()
public array|false $kex_algorithms
Результат array | false

$kex_dh_group_size_max публичное свойство

Maximum Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
См. также: self::_key_exchange()
public int $kex_dh_group_size_max
Результат integer

$kex_dh_group_size_min публичное свойство

Minimum Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
См. также: self::_key_exchange()
public int $kex_dh_group_size_min
Результат integer

$kex_dh_group_size_preferred публичное свойство

Preferred Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
См. также: self::_key_exchange()
public int $kex_dh_group_size_preferred
Результат integer

$keyboard_requests_responses публичное свойство

Keyboard Interactive Request / Responses
См. также: self::_keyboard_interactive_process()
public array $keyboard_requests_responses
Результат array

$languages_client_to_server публичное свойство

Languages: Client to Server
См. также: self::getLanguagesClient2Server()
public array|false $languages_client_to_server
Результат array | false

$languages_server_to_client публичное свойство

Languages: Server to Client
См. также: self::getLanguagesServer2Client()
public array|false $languages_server_to_client
Результат array | false

$last_interactive_response публичное свойство

The Last Interactive Response
См. также: self::_keyboard_interactive_process()
public string $last_interactive_response
Результат string

$last_packet публичное свойство

Time of first network activity
public int $last_packet
Результат integer

$log_boundary публичное свойство

Log Boundary
См. также: self::_format_log()
public string $log_boundary
Результат string

$log_long_width публичное свойство

Log Long Width
См. также: self::_format_log()
public int $log_long_width
Результат integer

$log_short_width публичное свойство

Log Short Width
См. также: self::_format_log()
public int $log_short_width
Результат integer

$log_size публичное свойство

Should never exceed NET_SSH2_LOG_MAX_SIZE
См. также: self::_send_binary_packet()
См. также: self::_get_binary_packet()
public int $log_size
Результат integer

$mac_algorithms_client_to_server публичное свойство

MAC Algorithms: Client to Server
См. также: self::getMACAlgorithmsClient2Server()
public array|false $mac_algorithms_client_to_server
Результат array | false

$mac_algorithms_server_to_client публичное свойство

MAC Algorithms: Server to Client
См. также: self::getMACAlgorithmsServer2Client()
public array|false $mac_algorithms_server_to_client
Результат array | false

$message_log публичное свойство

Message Log
См. также: self::getLog()
public array $message_log
Результат array

$message_number_log публичное свойство

Message Number Log
См. также: self::getLog()
public array $message_number_log
Результат array

$message_numbers публичное свойство

Message Numbers
См. также: self::Net_SSH2()
public array $message_numbers
Результат array

$packet_size_client_to_server публичное свойство

Maximum packet size indexed by channel
См. также: self::_send_channel_packet()
public array $packet_size_client_to_server
Результат array

$port публичное свойство

Port Number
См. также: self::Net_SSH2()
См. также: self::_connect()
public int $port
Результат integer

$quiet_mode публичное свойство

Flag to suppress stderr from output
См. также: self::enableQuietMode()
public $quiet_mode

$realtime_log_file публичное свойство

Real-time log file pointer
См. также: self::_append_log()
public resource $realtime_log_file
Результат resource

$realtime_log_size публичное свойство

Real-time log file size
См. также: self::_append_log()
public int $realtime_log_size
Результат integer

$realtime_log_wrap публичное свойство

Real-time log file wrap boolean
См. также: self::_append_log()
public $realtime_log_wrap

$request_pty публичное свойство

Flag to request a PTY when using exec()
См. также: self::enablePTY()
public bool $request_pty
Результат boolean

$send_seq_no публичное свойство

See 'Section 6.4. Data Integrity' of rfc4253 for more info.
См. также: self::_send_binary_packet()
public int $send_seq_no
Результат integer

$server_channels публичное свойство

Maps client channels to server channels
См. также: self::_get_channel_packet()
См. также: self::exec()
public array $server_channels
Результат array

$server_host_key_algorithms публичное свойство

Server Host Key Algorithms
См. также: self::getServerHostKeyAlgorithms()
public array|false $server_host_key_algorithms
Результат array | false

$server_identifier публичное свойство

Server Identifier
См. также: self::getServerIdentification()
public array|false $server_identifier
Результат array | false

$server_public_host_key публичное свойство

Server Public Host Key
См. также: self::getServerPublicHostKey()
public string $server_public_host_key
Результат string

$session_id публичное свойство

"The exchange hash H from the first key exchange is additionally used as the session identifier, which is a unique identifier for this connection." -- http://tools.ietf.org/html/rfc4253#section-7.2
См. также: self::_key_exchange()
public string $session_id
Результат string

$signature публичное свойство

Verified against $this->session_id
См. также: self::getServerPublicHostKey()
public string $signature
Результат string

$signature_format публичное свойство

ssh-rsa or ssh-dss.
См. также: self::getServerPublicHostKey()
public string $signature_format
Результат string

$signature_validated публичное свойство

Has the signature been validated?
См. также: self::getServerPublicHostKey()
public bool $signature_validated
Результат boolean

$stdErrorLog публичное свойство

Contents of stdError
public string $stdErrorLog
Результат string

$terminal_modes публичное свойство

Terminal Modes
См. также: self::Net_SSH2()
public array $terminal_modes
Результат array

$timeout публичное свойство

Timeout
См. также: self::setTimeout()
public $timeout

$windowColumns публичное свойство

Number of columns for terminal window size
См. также: self::getWindowColumns()
См. также: self::setWindowColumns()
См. также: self::setWindowSize()
public int $windowColumns
Результат integer

$windowRows публичное свойство

Number of columns for terminal window size
См. также: self::getWindowRows()
См. также: self::setWindowRows()
См. также: self::setWindowSize()
public int $windowRows
Результат integer

$window_size публичное свойство

Bytes the other party can send before it must wait for the window to be adjusted (0x7FFFFFFF = 2GB)
См. также: self::_send_channel_packet()
См. также: self::exec()
public int $window_size
Результат integer

$window_size_client_to_server публичное свойство

Window size indexed by channel
См. также: self::_get_channel_packet()
public array $window_size_client_to_server
Результат array

$window_size_server_to_client публичное свойство

Window size indexed by channel
См. также: self::_send_channel_packet()
public array $window_size_server_to_client
Результат array