pub fn load_public_key<P: AsRef<Path>>(path: P) -> Result<PublicKey, Error>
Expand description

Load a public key from a file. Ed25519 and RSA keys are supported.

thrussh_keys::load_public_key("/home/pe/.ssh/id_ed25519.pub").unwrap();