Net::SSH::Session
Обёртка над SSH2::Session с net-ssh-подобным API.
Constructors
new(ssh2 : SSH2::Session)
SourceInstance methods
close
Sourcenet-ssh: ssh.exec("cmd") { |data, channel| } — стримингово.
net-ssh: ssh.exec!("cmd") → "stdout" (stderr отбрасывается). Здесь (как в ssh.cr): кортеж {stdout, exit_status}.
ssh2
Source