class

Shellmin::SSHConnection

Inherits Reference < Object

Represents an SSH connection to a remote host. Handles authentication, execution, and health monitoring.

Constants

DEFAULT_SSH_PORT = 22

Constructors

new(host : String, user : String = "root", port : Int32 = DEFAULT_SSH_PORT, session : SSH2::Session | Nil = nil)
Source

Instance methods

close
Source
connect(password : String | Nil = nil, key_path : String | Nil = nil, timeout : Time::Span = 30.seconds) : self
Source
connected?
Source
connection_id
Source
execute(command : String, timeout : Time::Span = 60.seconds) : Tuple(String, String, Int32)
Source
force_disconnect
Source
healthy?
Source
host
Source
port
Source
user
Source