Documentation ¶
Overview ¶
Package ssh handles SSH configuration for the local machine. Things like creating keys and adding them to the authorized_keys file are handled here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowLocalSSH ¶
func AllowLocalSSH() error
AllowLocalSSH instantiates a new SSH object and calls AllowLocalSSH on it.
Types ¶
type SSH ¶
type SSH struct {
// contains filtered or unexported fields
}
SSH is a struct that helps setting up SSH related configurations.
func (*SSH) AllowLocalSSH ¶
AllowLocalSSH configures the local machine to allow SSH access to the machine from the local machine. Sets up a new SSH keypair and adds the public key to the authorized_keys file.
Click to show internal directories.
Click to hide internal directories.