mitoxide-ssh 0.1.0

SSH transport layer for Mitoxide
Documentation

Mitoxide SSH

Crates.io Documentation License: MIT

SSH transport layer for Mitoxide - providing secure remote connections with connection pooling and jump host support.

Features

  • Multiple SSH backend support (libssh2, OpenSSH)
  • Connection pooling and reuse
  • Jump host and bastion support
  • Automatic reconnection and recovery
  • Efficient connection management

Usage

This crate is primarily used internally by Mitoxide, but can be used standalone for SSH operations.

use mitoxide_ssh::{SshConfig, StdioTransport, Transport};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = SshConfig {
        host: "remote-host".to_string(),
        port: 22,
        user: "username".to_string(),
        key_path: "/path/to/key".to_string(),
        ..Default::default()
    };
    
    let mut transport = StdioTransport::new(config);
    let connection = transport.connect().await?;
    
    Ok(())
}

Features

  • ssh2 (default) - Use libssh2 for SSH transport
  • openssh - Use OpenSSH client for transport

Documentation

License

This project is licensed under the MIT License.