module

Shirk

Constants

VERSION = "0.1.0"

Class methods

auth_password_cb(session : LibSSH::Session, user : Pointer(UInt8), pass : Pointer(UInt8), userdata : Pointer(Void)) : Int32

Auth password callback

Source
auth_pubkey_cb(session : LibSSH::Session, user : Pointer(UInt8), pubkey : LibSSH::Key, sig_state : UInt8, userdata : Pointer(Void)) : Int32

Auth pubkey callback

Source
call_pending_handler(cdata : ChannelData, channel : LibSSH::Channel)

Helper to call pending handler with buffered stdin

Source
channel_data_cb(session : LibSSH::Session, channel : LibSSH::Channel, data : Pointer(Void), len : UInt32, is_stderr : Int32, userdata : Pointer(Void)) : Int32

Channel data callback

Source
channel_eof_cb(session : LibSSH::Session, channel : LibSSH::Channel, userdata : Pointer(Void)) : Int32

Channel EOF callback

Source
channel_exec_cb(session : LibSSH::Session, channel : LibSSH::Channel, cmd : Pointer(UInt8), userdata : Pointer(Void)) : Int32

Channel exec request callback

Source
channel_open_cb(session : LibSSH::Session, userdata : Pointer(Void)) : LibSSH::Channel

Channel open callback

Source
channel_shell_cb(session : LibSSH::Session, channel : LibSSH::Channel, userdata : Pointer(Void)) : Int32

Channel shell request callback

Source
finalize_libssh

Class method to finalize libssh when program exits

Source
process_stderr(fd : Int32, revents : Int16, userdata : Pointer(Void)) : Int32

Stderr fd callback

Source
process_stdout(fd : Int32, revents : Int16, userdata : Pointer(Void)) : Int32

Stdout fd callback

Source
run_command_for_channel(command : String, cdata : ChannelData) : Int32

Helper to run command via fork/exec

Source

Nested types