class

Net::SSH::Session

Inherits Reference < Object

Обёртка над SSH2::Session с net-ssh-подобным API.

Constructors

new(ssh2 : SSH2::Session)
Source

Instance methods

channel

Низкоуровневый канал (libssh2-direct).

Source
close
Source
exec(command : String, &block : Bytes, Bool -> _) : Nil

net-ssh: ssh.exec("cmd") { |data, channel| } — стримингово.

Source
exec!(command : String) : Tuple(String, Int32)

net-ssh: ssh.exec!("cmd") → "stdout" (stderr отбрасывается). Здесь (как в ssh.cr): кортеж {stdout, exit_status}.

Source
ssh2
Source