MCPcopy Create free account
hub / github.com/RustCrypto/SSH / write_public_key

Method write_public_key

ssh-key/src/dot_ssh.rs:102–104  ·  view source on GitHub ↗

Write a public key into `~/.ssh`. # Errors Returns [`Error::Io`] in the event of I/O errors.

(&self, filename: impl AsRef<Path>, key: &PublicKey)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

write_openssh_fileMethod · 0.45

Tested by

no test coverage detected