ssh

package module
v0.0.0-...-fc4206c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ssh and its subpackages provide functionality for building SSH clients and servers on top of golang.org/x/crypto/ssh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKeyConfig

type PrivateKeyConfig struct {
	File       string `json:"file" yaml:"file"`
	Passphrase string `json:"passphrase" yaml:"passphrase"`
}

PrivateKeyConfig is the configuration of an SSH private key.

func (PrivateKeyConfig) Build

func (c PrivateKeyConfig) Build() (ssh.Signer, error)

Build builds an ssh.Signer from the configuration.

func (PrivateKeyConfig) Validate

func (c PrivateKeyConfig) Validate() error

Validate validates the configuration and returns an error if it is not valid.

Directories

Path Synopsis
Package aws provides an ssh.Signer on top of AWS KMS.
Package aws provides an ssh.Signer on top of AWS KMS.
cmd
Package sshclient provides configuration structs for constructing SSH clients.
Package sshclient provides configuration structs for constructing SSH clients.

Jump to

Keyboard shortcuts

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