Initial implementation

This commit is contained in:
2025-04-04 12:39:04 +02:00
commit 95c1ec2b96
8 changed files with 4396 additions and 0 deletions

9
src/bin/generate_key.rs Normal file
View File

@@ -0,0 +1,9 @@
use std::path::Path;
use rand::rngs::OsRng;
fn main() {
let key = russh::keys::PrivateKey::random(&mut OsRng, russh::keys::Algorithm::Ed25519).unwrap();
key.write_openssh_file(Path::new("./key.pem"), russh::keys::ssh_key::LineEnding::LF)
.unwrap();
}