### Classes and interfaces

# Net_SFTP¶

Pure-PHP implementations of SFTP.

« More »

### Constants

## SFTP channel constant

    NET_SFTP_CHANNEL

Net_SSH2::exec() uses 0 and Net_SSH2::read() / Net_SSH2::write() use 1.

see | \global\Net_SSH2::_send_channel_packet()
see | \global\Net_SSH2::_get_channel_packet()
access | private

## Reads data from a local file.

    NET_SFTP_LOCAL_FILE

## Returns the message content

    NET_SFTP_LOG_COMPLEX

## Returns the message numbers

    NET_SFTP_LOG_SIMPLE

## Reads data from a string.

    NET_SFTP_STRING

### Classes and interfaces

# Net_SSH1¶

Pure-PHP implementation of SSHv1.

« More »

### Constants

## $value

    $value

## password authentication

    NET_SSH1_AUTH_PASSWORD

This is the only method that is supported by this library.

## NET_SSH1_AUTH_RHOSTS

    NET_SSH1_AUTH_RHOSTS

## NET_SSH1_AUTH_RHOSTS_RSA

    NET_SSH1_AUTH_RHOSTS_RSA

## pure RSA authentication

    NET_SSH1_AUTH_RSA

## Triple-DES in CBC mode

    NET_SSH1_CIPHER_3DES

All implementations are required to support this

## Blowfish

    NET_SSH1_CIPHER_BLOWFISH

Not supported nor is it defined in the official SSH1 specs. OpenSSH, however, defines it (see cipher.h) and uses it (see cipher.c)

## TRI's Simple Stream encryption CBC

    NET_SSH1_CIPHER_BROKEN_TSS

Not supported nor is it defined in the official SSH1 specs. OpenSSH, however, does define it (see cipher.h), although it doesn't use it (see cipher.c)

## DES in CBC mode

    NET_SSH1_CIPHER_DES

## IDEA in CFB mode

    NET_SSH1_CIPHER_IDEA

Not supported.

## No encryption

    NET_SSH1_CIPHER_NONE

Not supported.

## Returns the message content

    NET_SSH1_LOG_COMPLEX

## Returns the message numbers

    NET_SSH1_LOG_SIMPLE

## NET_SSH1_MASK_CONSTRUCTOR

    NET_SSH1_MASK_CONSTRUCTOR

## NET_SSH1_MASK_LOGIN

    NET_SSH1_MASK_LOGIN

## NET_SSH1_MASK_SHELL

    NET_SSH1_MASK_SHELL

## Returns when a string matching the regular expression $expect is found

    NET_SSH1_READ_REGEX

## Returns when a string matching $expect exactly is found

    NET_SSH1_READ_SIMPLE

## The Response Data

    NET_SSH1_RESPONSE_DATA

see | \global\Net_SSH1::_get_binary_packet()
access | private

## The Response Type

    NET_SSH1_RESPONSE_TYPE

see | \global\Net_SSH1::_get_binary_packet()
access | private

## NET_SSH1_TTY_OP_END

    NET_SSH1_TTY_OP_END

### Classes and interfaces

# Net_SSH2¶

Pure-PHP implementation of SSHv2.

« More »

### Constants

## $value

    $value

## NET_SSH2_CHANNEL_EXEC

    NET_SSH2_CHANNEL_EXEC

## NET_SSH2_CHANNEL_SHELL

    NET_SSH2_CHANNEL_SHELL

## Returns the message content

    NET_SSH2_LOG_COMPLEX

## Returns the message numbers

    NET_SSH2_LOG_SIMPLE

## NET_SSH2_MASK_CONSTRUCTOR

    NET_SSH2_MASK_CONSTRUCTOR

## NET_SSH2_MASK_LOGIN

    NET_SSH2_MASK_LOGIN

## NET_SSH2_MASK_SHELL

    NET_SSH2_MASK_SHELL

## Returns when a string matching the regular expression $expect is found

    NET_SSH2_READ_REGEX

## Returns when a string matching $expect exactly is found

    NET_SSH2_READ_SIMPLE