ssh

package
v0.11.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

func (s *SSH) AllowLocalSSH() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL