- class
SSHSession(ssh\SSHSession) - package
ssh - source
ssh/SSHSession.php
Description
Class SSHSession
->clientVersion:string->host:string->port:int->timeout:int
->__construct()->setConfig()->getConfig()->connect()->disconnect()->setUserInfo()- param is:->getUserInfo()->setPassword()->setDaemonThread()->sendIgnore()->sendKeepAliveMsg()->rekey()->exec()- Open exec channel.->sftp()- Open SFTP channel.
__construct(): voidsetConfig(string $key, string $value): voidgetConfig(string $key): stringconnect(int $timeout): voiddisconnect(): voidsetUserInfo([ array $userInfoHandlers): voidparam is: [ getPassphrase => callable(): string, getPassword => callable(): string, promptPassword => callable(string $msg): bool promptPassphrase => callable(string $msg): bool promptYesNo => callable(string $msg): bool showMessage => callable(string $msg): void ]
getUserInfo(): array|nullsetPassword(string $password): voidsetDaemonThread(bool $enable): voidsendIgnore(): voidsendKeepAliveMsg(): voidrekey(): voidexec(): ssh\SSHExecChannelOpen exec channel.
sftp(): ssh\SSHSftpChannelOpen SFTP channel.