Skip to main content

Module ssh

Module ssh 

Source
Expand description

SSH connection management for RIPE Atlas controller communication

This module provides:

  • SSH tunnel management with automatic reconnection
  • Registration protocol (INIT command)
  • Keepalive handling (KEEP command)
  • Reverse port forwarding for telnet interface

Structs§

ControllerInfo
Controller information returned from INIT
KnownHosts
Known SSH host keys for server verification (TOFU model)
ProbeInitInfo
Probe information sent during registration INIT
SshConfig
SSH connection configuration
SshConnection
SSH connection to RIPE Atlas controller
TelnetState
State needed for handling telnet connections directly in the SSH handler

Enums§

InitResponse
INIT response variants

Functions§

generate_key
Generate a new SSH key pair
key_fingerprint
Compute the SHA256 fingerprint of a public key (e.g., “SHA256:abc123…”)
load_key
Load SSH key from file
load_key_from_string
Load SSH key pair from a PEM string (e.g. from an environment variable)
save_key
Save SSH key pair to files