sshserver

package
v0.0.0-...-13d6dd4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PLUGIN = `` /* 3289-byte string literal not displayed */

PLUGIN The default bash kubectl plugin authenticating with this server

Variables

This section is empty.

Functions

func GenSSHServerConfig

func GenSSHServerConfig(privateBytes []byte) *ssh.ServerConfig

GenSSHServerConfig generates the ssh server config from a private key

func Server

func Server(c Config)

Server the ssh server main listener

Types

type Config

type Config struct {
	Port         string
	ServerConfig *ssh.ServerConfig
	Listener     sshnet.Listener
	ProxyCA      string
}

Config sshserver config

type Keys

type Keys struct {
	BitSize    int
	PublicKey  []byte
	PrivateKey []byte
}

Keys container for public/private ssh keys

func GenKeys

func GenKeys() Keys

GenKeys returns a pair of ssh public/private keys

type Metrics

type Metrics struct {
	Accept       prometheus.Counter
	LoginSuccess prometheus.Counter
	LoginFail    prometheus.Counter
}

The Metrics that the module produces

Jump to

Keyboard shortcuts

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