SSH2
in package
Interface with SSH2 servers.
Tags
Table of Contents
Constants
- DEFAULT_PORT = 22
Properties
- $allowingNewFingerprint : mixed
- $connection : mixed
- $currentDirectory : mixed
- $fingerprint : mixed
- $host : mixed
- $passphrase : mixed
- $password : mixed
- $port : mixed
- $privateKeyPath : mixed
- $publicKeyPath : mixed
- $username : mixed
Methods
- __construct() : mixed
- __destruct() : mixed
- Destructor for this instance.
- __toString() : mixed
- connect() : mixed
- disconnect() : mixed
- exec() : mixed
- execRaw() : mixed
- getConnection() : mixed
- getCurrentDirectory() : mixed
- getFingerprint() : mixed
- getHost() : mixed
- getPassword() : mixed
- getPort() : mixed
- getPublicKeyPath() : mixed
- getUsername() : mixed
- isAllowingNewFingerprint() : mixed
- isConnected() : mixed
- sendCertificate() : mixed
- setAllowingNewFingerprint() : mixed
- setCertificateAuthentication() : mixed
- setCurrentDirectory() : mixed
- setFingerprint() : mixed
- setHost() : mixed
- setPasswordAuthentication() : mixed
- setPort() : mixed
- setPublicKeyPath() : mixed
Constants
DEFAULT_PORT
public
mixed
DEFAULT_PORT
= 22
Properties
$allowingNewFingerprint
protected
mixed
$allowingNewFingerprint
= false
$connection
protected
mixed
$connection
$currentDirectory
protected
mixed
$currentDirectory
$fingerprint
protected
mixed
$fingerprint
$host
protected
mixed
$host
$passphrase
protected
mixed
$passphrase
$password
protected
mixed
$password
$port
protected
mixed
$port
= self::DEFAULT_PORT
$privateKeyPath
protected
mixed
$privateKeyPath
$publicKeyPath
protected
mixed
$publicKeyPath
$username
protected
mixed
$username
Methods
__construct()
public
__construct(mixed $host[, mixed $port = self::DEFAULT_PORT ][, mixed $fingerprint = null ]) : mixed
Parameters
- $host : mixed
- $port : mixed = self::DEFAULT_PORT
- $fingerprint : mixed = null
__destruct()
Destructor for this instance.
public
__destruct() : mixed
__toString()
public
__toString() : mixed
connect()
public
connect() : mixed
disconnect()
public
disconnect() : mixed
exec()
public
exec(mixed $cmd[, mixed &$output = null ][, mixed &$error = null ]) : mixed
Parameters
- $cmd : mixed
- $output : mixed = null
- $error : mixed = null
execRaw()
public
execRaw(mixed $cmd) : mixed
Parameters
- $cmd : mixed
getConnection()
public
getConnection() : mixed
getCurrentDirectory()
public
getCurrentDirectory() : mixed
getFingerprint()
public
getFingerprint() : mixed
getHost()
public
getHost() : mixed
getPassword()
public
getPassword() : mixed
getPort()
public
getPort() : mixed
getPublicKeyPath()
public
getPublicKeyPath() : mixed
getUsername()
public
getUsername() : mixed
isAllowingNewFingerprint()
public
isAllowingNewFingerprint() : mixed
isConnected()
public
isConnected() : mixed
sendCertificate()
public
sendCertificate(mixed $publicKeyPath) : mixed
Parameters
- $publicKeyPath : mixed
setAllowingNewFingerprint()
public
setAllowingNewFingerprint(mixed $allowingNewFingerprint) : mixed
Parameters
- $allowingNewFingerprint : mixed
setCertificateAuthentication()
public
setCertificateAuthentication(mixed $username, mixed $privateKeyPath[, mixed $publicKeyPath = null ][, mixed $passphrase = null ]) : mixed
Parameters
- $username : mixed
- $privateKeyPath : mixed
- $publicKeyPath : mixed = null
- $passphrase : mixed = null
setCurrentDirectory()
public
setCurrentDirectory(mixed $currentDirectory) : mixed
Parameters
- $currentDirectory : mixed
setFingerprint()
public
setFingerprint(mixed $fingerprint) : mixed
Parameters
- $fingerprint : mixed
setHost()
public
setHost(mixed $host) : mixed
Parameters
- $host : mixed
setPasswordAuthentication()
public
setPasswordAuthentication(mixed $username, mixed $password) : mixed
Parameters
- $username : mixed
- $password : mixed
setPort()
public
setPort(mixed $port) : mixed
Parameters
- $port : mixed
setPublicKeyPath()
public
setPublicKeyPath(mixed $publicKeyPath) : mixed
Parameters
- $publicKeyPath : mixed