| Crates.io | mitoxide-ssh |
| lib.rs | mitoxide-ssh |
| version | 0.1.0 |
| created_at | 2025-10-16 15:59:19.115885+00 |
| updated_at | 2025-10-16 15:59:19.115885+00 |
| description | SSH transport layer for Mitoxide |
| homepage | https://github.com/yourusername/mitoxide |
| repository | https://github.com/yourusername/mitoxide |
| max_upload_size | |
| id | 1886350 |
| size | 56,807 |
SSH transport layer for Mitoxide - providing secure remote connections with connection pooling and jump host support.
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(())
}
ssh2 (default) - Use libssh2 for SSH transportopenssh - Use OpenSSH client for transportThis project is licensed under the MIT License.