pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($user, $service, $method, $algorithm, $key, $hostname, $remoteUser, $signature) | |
getAlgorithm () | |
getHostname () | |
getKey () | |
getRemoteUser () | |
getSignature () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
![]() | |
__construct ($user, $service, $method) | |
getMethodName () | |
getServiceName () | |
getUserName () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Protected Member Functions | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
![]() | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$algorithm | |
Public key algorithm in use (eg. "ssh-rsa" or "ssh-dss"). | |
$hostname | |
Remote hostname. | |
$key | |
Key blob. | |
$remoteUser | |
Remote login. | |
$signature | |
Signature to prove key ownership. | |
![]() | |
$method | |
Authentication method. | |
$service | |
Service to start after authentication. | |
$user | |
User being authenticated. | |
Additional Inherited Members | |
![]() | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
SSH_MSG_USERAUTH_REQUEST message (RFC 4252) for the "hostbased" method.
Definition at line 18 of file HostBased.php.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::__construct | ( | $user, | |
$service, | |||
$method, | |||
$algorithm, | |||
$key, | |||
$hostname, | |||
$remoteUser, | |||
$signature | |||
) |
Construct a new user authentication request.
string | $user | User to authenticate as. |
string | $service | Service to run after authentication. |
string | $method | Authentication method to use. |
string | $algorithm | Public key algorithm to use. |
string | $key | Key blob. |
string | $hostname | Hostname the user is connecting from. |
string | $remoteUser | User's login on the remote machine. |
string | $signature | Signature proving ownership of the key. |
Definition at line 54 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$algorithm, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$hostname, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$key, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$method, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$remoteUser, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$service, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$signature, and fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$user.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::getAlgorithm | ( | ) |
Get public key algorithm in use.
string | Public key algorithm in use. |
Definition at line 137 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$algorithm.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::getHostname | ( | ) |
Get the hostname of the remote machine the user is connecting from.
string | Remote hostname. |
Definition at line 160 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$hostname.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::getKey | ( | ) |
Get the key blob.
string | Key blob. |
Definition at line 148 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$key.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::getRemoteUser | ( | ) |
Get the login of the user on the remote machine.
string | Remote login. |
Definition at line 171 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$remoteUser.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::getSignature | ( | ) |
Get the signature proving key ownership.
string | Signature proving key ownership. |
Definition at line 182 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$signature.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize the message.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to perform serialization. |
MessageInterface | Returns this message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 92 of file HostBased.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\HostBased\$algorithm.