__construct() __construct( $host, $username, $publicKey) SshAdapter constructor. Parameters $host $username $publicKey Throws \MrCrankHank\ConsoleAccess\Exceptions\PublicKeyMismatchException
loginKey() loginKey( $key, null $password = null) Login via private key. Parameters $key null $password
run() run(string $command, \Closure|null $live = null) Run a command on the remote server. Parameters string $command Command which should be run \Closure|null $live Closure to capture the live output of the command
getOutput() getOutput() : mixed Return the output of the last command. Does not work well with long running commands. You should capture the live output instead. Returns mixed
_login() _login( $auth) Login to the server. Parameters $auth Throws \MrCrankHank\ConsoleAccess\Exceptions\ConnectionNotPossibleException