mitoxide-ssh

Crates.iomitoxide-ssh
lib.rsmitoxide-ssh
version0.1.0
created_at2025-10-16 15:59:19.115885+00
updated_at2025-10-16 15:59:19.115885+00
descriptionSSH transport layer for Mitoxide
homepagehttps://github.com/yourusername/mitoxide
repositoryhttps://github.com/yourusername/mitoxide
max_upload_size
id1886350
size56,807
Sebx (Sebx)

documentation

https://docs.rs/mitoxide-ssh

README

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.

Commit count: 0

cargo fmt