class SSH::Channel

Defined in:

ssh.cr

Instance Method Summary

Instance Method Detail

def close : Nil #
Description copied from class IO

Closes this IO.

IO defines this is a no-op method, but including types may override.


[View source]
def eof! : Nil #

Notify the channel that the STDIN is closed, no more data can be written


[View source]
def exec(cmd : String) : Nil #

[View source]
def exit_signal : String | Nil #

[View source]
def exit_status : Int32 | Nil #

[View source]
def finalize #

[View source]
def on_data(&blk : Proc(Bytes, Bool, Void)) #

[View source]
def read(slice : Bytes) : Int #

Use the #on_data callback to retrive output from the SSH session


[View source]
def wait : Nil #

Wait for the channel to finish executing, issue after #exec


[View source]
def write(slice : Bytes) : Nil #

Write to the STDIN of the SSH session channel


[View source]