PHP 클래스 phpseclib\System\SSH\Agent

requestIdentities() method pumps out \phpseclib\System\SSH\Agent\Identity objects
저자: Jim Wigginton ([email protected])
파일 보기 프로젝트 열기: phpseclib/phpseclib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$expected_bytes Tracking the number of bytes we are expecting to arrive for the agent socket on the SSH data channel
$forward_status Agent forwarding status
$fsock resource Socket Resource
$socket_buffer Buffer for accumulating forwarded authentication agent data arriving on SSH data channel destined for agent unix socket

공개 메소드들

메소드 설명
__construct ( ) : Agent Default Constructor
_forward_data ( string $data ) : data Forward data to SSH Agent and return data reply
_on_channel_open ( Net_SSH2 $ssh ) On successful channel open
_request_forwarding ( Net_SSH2 $ssh ) : boolean Request agent forwarding of remote server
requestIdentities ( ) : array Request Identities
startSSHForwarding ( Net_SSH2 $ssh ) : boolean Signal that agent forwarding should be requested when a channel is opened

메소드 상세

__construct() 공개 메소드

Default Constructor
public __construct ( ) : Agent
리턴 Agent

_forward_data() 공개 메소드

Forward data to SSH Agent and return data reply
public _forward_data ( string $data ) : data
$data string
리턴 data from SSH Agent

_on_channel_open() 공개 메소드

This method is called upon successful channel open to give the SSH Agent an opportunity to take further action. i.e. request agent forwarding
public _on_channel_open ( Net_SSH2 $ssh )
$ssh Net_SSH2

_request_forwarding() 공개 메소드

Request agent forwarding of remote server
public _request_forwarding ( Net_SSH2 $ssh ) : boolean
$ssh Net_SSH2
리턴 boolean

requestIdentities() 공개 메소드

See "2.5.2 Requesting a list of protocol 2 keys" Returns an array containing zero or more \phpseclib\System\SSH\Agent\Identity objects
public requestIdentities ( ) : array
리턴 array

startSSHForwarding() 공개 메소드

Signal that agent forwarding should be requested when a channel is opened
public startSSHForwarding ( Net_SSH2 $ssh ) : boolean
$ssh Net_SSH2
리턴 boolean

프로퍼티 상세

$expected_bytes 공개적으로 프로퍼티

Tracking the number of bytes we are expecting to arrive for the agent socket on the SSH data channel
public $expected_bytes

$forward_status 공개적으로 프로퍼티

Agent forwarding status
public $forward_status

$fsock 공개적으로 프로퍼티

Socket Resource
public resource $fsock
리턴 resource

$socket_buffer 공개적으로 프로퍼티

Buffer for accumulating forwarded authentication agent data arriving on SSH data channel destined for agent unix socket
public $socket_buffer