Versions in this module Expand all Collapse all v0 v0.2.0 Nov 2, 2026 Changes in this version + func Fingerprint(ctx context.Context, id Identity, tempRoot string) (string, error) + func HostFingerprint(key string) (string, error) + func ScanHostKey(ctx context.Context, host string, port int) (string, error) + func Validate(c *Config) error + func ValidateAddress(c *Config) error + type Config struct + Host string + HostKey string + Port int + SecretID string + Sudo bool + User string + type Identity struct + Passphrase string + PrivateKey string + type Session struct + Config Config + func New(c Config, id Identity, tempRoot string) (*Session, error) + func (s *Session) Close() + func (s *Session) Run(ctx context.Context, command string, input io.Reader) ([]byte, error) + func (s *Session) Stream(ctx context.Context, command string, input io.Reader, w io.Writer) error + type Shell struct + Stdin io.WriteCloser + Stdout io.Reader + func OpenShell(ctx context.Context, c Config, id Identity, cols, rows int) (*Shell, error) + func (s *Shell) Close() + func (s *Shell) Resize(cols, rows int) error + func (s *Shell) Wait() error + type System struct + ConfigFile string + Host string + IdentityFile string + Port int + User string + func (s System) Run(ctx context.Context, command string, input io.Reader) ([]byte, error) v0.1.0 Oct 31, 2026