progfiguration.ssh#

SSH operations

Module Contents#

Functions#

_generate_pubkey_from_path(→ str)

Generate a public key from a private key

_generate_pubkey_from_string(→ str)

Generate a public key from a private key

generate_pubkey(→ str)

Generate a public key from a private key

progfiguration.ssh._generate_pubkey_from_path(path: progfiguration.progfigtypes.PathOrStr) str#

Generate a public key from a private key

progfiguration.ssh._generate_pubkey_from_string(key: str) str#

Generate a public key from a private key

progfiguration.ssh.generate_pubkey(privkey: progfiguration.progfigtypes.AnyPathOrStr) str#

Generate a public key from a private key

The private key can be a string containing the key itself, or a path to a file containing the key. If a path, it can be a string or one of several Path-like types.