Crates.io | ssh-test-server |
lib.rs | ssh-test-server |
version | 0.1.1 |
source | src |
created_at | 2024-11-08 23:19:07.521701 |
updated_at | 2024-11-08 23:27:57.875166 |
description | In memoery ssh server for integration testing. |
homepage | |
repository | https://gitlab.com/mateuszkj/ssh-test-server |
max_upload_size | |
id | 1441664 |
size | 37,648 |
ssh-test-server
provides ssh server to that can be used in integration testing.
use ssh_test_server::{SshServerBuilder, User};
#[tokio::main(flavor = "current_thread")]
async fn main() {
let ssh = SshServerBuilder::default()
.add_user(User::new_admin("root", "pass123"))
.run()
.await
.unwrap();
println!("ssh -p {} root@{}", ssh.port(), ssh.host());
tokio::signal::ctrl_c().await.unwrap();
}
Contributions are welcome! Please open an issue or submit a pull request on Gitlab.
Before sending pull request please run lints and tests first:
cargo install just
just install-dev
just lint
just test
This project is licensed under the MIT OR Apache-2.0 License.