Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TeleportKey is the name the OpenSSH private key TeleportKey = "ssh_host_teleport_key" // TeleportKey is the name the OpenSSH cert TeleportCert = TeleportKey + "-cert.pub" // TeleportOpenSSHCA is the path to the Teleport OpenSSHCA TeleportOpenSSHCA = "teleport_openssh_ca.pub" )
View Source
const DefaultRestartCommand = "systemctl restart sshd"
Variables ¶
View Source
var (
// SSHDKeysDir is the path to the Teleport openssh keys
SSHDKeysDir = "openssh"
)
Functions ¶
Types ¶
type SSHD ¶
type SSHD struct {
// contains filtered or unexported fields
}
SSHD is used to update the OpenSSH config
func (*SSHD) UpdateConfig ¶
func (s *SSHD) UpdateConfig(u SSHDConfigUpdate, restart bool) error
UpdateConfig updates the sshd_config file if needed and writes the teleport specific configuration
type SSHDConfigUpdate ¶
type SSHDConfigUpdate struct { // SSHDConfigPath is the path to the OpenSSH sshd_config file SSHDConfigPath string // DataDir is the path to the global Teleport datadir DataDir string }
SSHDConfigUpdate is the list of options to be set in the Teleport OpenSSH config
Click to show internal directories.
Click to hide internal directories.