[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/System/SSH/ -> Agent.php (summary)

Pure-PHP ssh-agent client. {@internal See http://api.libssh.org/rfc/PROTOCOL.agent}

Author: Jim Wigginton
Copyright: 2014 Jim Wigginton
License: http://www.opensource.org/licenses/mit-license.html MIT License
Link: http://phpseclib.sourceforge.net
File Size: 286 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Agent:: (6 methods):
  __construct()
  requestIdentities()
  startSSHForwarding()
  request_forwarding()
  registerChannelOpen()
  forwardData()


Class: Agent  - X-Ref

Pure-PHP ssh-agent client identity factory

requestIdentities() method pumps out \phpseclib3\System\SSH\Agent\Identity objects

__construct($address = null)   X-Ref
Default Constructor

return: \phpseclib3\System\SSH\Agent

requestIdentities()   X-Ref
Request Identities

See "2.5.2 Requesting a list of protocol 2 keys"
Returns an array containing zero or more \phpseclib3\System\SSH\Agent\Identity objects

return: array

startSSHForwarding()   X-Ref
Signal that agent forwarding should
be requested when a channel is opened

return: void

request_forwarding(SSH2 $ssh)   X-Ref
Request agent forwarding of remote server

return: bool
param: \phpseclib3\Net\SSH2 $ssh

registerChannelOpen(SSH2 $ssh)   X-Ref
On successful 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

param: \phpseclib3\Net\SSH2 $ssh

forwardData($data)   X-Ref
Forward data to SSH Agent and return data reply

return: string Data from SSH Agent
param: string $data