# Functions
AddKnownHost adds a host to the provided known hosts file, if no known hosts file is provided, it will fallback to default known_hosts file.
CheckKnownHost checks if a host is in known hosts file, if no known hosts file is provided, it will fallback to default known_hosts file.
No description provided by the author
DefaultKnownHosts returns a host key callback from default known hosts path.
DefaultKnownHostsPath returns default user ~/.ssh/known_hosts file.
Encodes private key from RSA struct to PEM formatted bytes.
Helper function to generate a random private key.
Generates SSH keys in EC2-readable format Returns public key bytes, private key bytes, error.
Takes an rsa.PublicKey and returns bytes suitable for writing to .pub file Returns in the format "ssh-rsa ...".
GetSSMCommandInvocationStdErr is a helper function to safely deference the SSM struct we receive from the AWS API.
GetSSMCommandInvocationStdOut is a helper function to safely deference the SSM struct we receive from the AWS API.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author