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

Method write_private_key

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

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

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

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