Skip to content

Files

Latest commit

614e444 · May 1, 2018

History

History
175 lines (124 loc) · 2.63 KB

SSHSession.ru.md

File metadata and controls

175 lines (124 loc) · 2.63 KB

SSHSession

  • класс SSHSession (ssh\SSHSession)
  • пакет ssh
  • исходники ssh/SSHSession.php

Описание

Class SSHSession


Свойства


Методы


Методы

__construct()

__construct(): void

setConfig()

setConfig(string $key, string $value): void

getConfig()

getConfig(string $key): string

connect()

connect(int $timeout): void

disconnect()

disconnect(): void

setUserInfo()

setUserInfo([ array $userInfoHandlers): void

param 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()

getUserInfo(): array|null

setPassword()

setPassword(string $password): void

setDaemonThread()

setDaemonThread(bool $enable): void

sendIgnore()

sendIgnore(): void

sendKeepAliveMsg()

sendKeepAliveMsg(): void

rekey()

rekey(): void

exec()

exec(): ssh\SSHExecChannel

Open exec channel.


sftp()

sftp(): ssh\SSHSftpChannel

Open SFTP channel.