Skip to main content

write_key_file

Function write_key_file 

Source
pub fn write_key_file(path: &Path, hex64: &str, force: bool) -> SshCliResult<()>
Expand description

Writes hex key to file with 0o600 (when supported).

ยงErrors

Returns an error if the key is invalid, the file exists without force, or I/O fails.