ssh

package
v2.232.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key  *Key `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
	Keys Keys `yaml:"keys,omitempty" json:"keys,omitempty" toml:"keys,omitempty"`
}

Config for ssh.

func (*Config) IsEnabled added in v2.115.0

func (c *Config) IsEnabled() bool

IsEnabled for ssh.

type Key

type Key struct {
	*ssh.Config `yaml:",inline" json:",inline" toml:",inline"`
	Name        string `yaml:"name,omitempty" json:"name,omitempty" toml:"name,omitempty"`
}

Key configuration with a name and ssh key.

type Keys

type Keys []*Key

Keys configuration with a names and ssh keys.

func (Keys) Get

func (c Keys) Get(name string) *Key

Get a key by name.

type Signer added in v2.9.0

type Signer = ssh.Signer

Signer is an alias of ssh.Signer.

type Token

type Token struct {
	// contains filtered or unexported fields
}

Token for ssh.

func NewToken

func NewToken(cfg *Config, fs *os.FS) *Token

NewToken for ssh.

func (*Token) Generate

func (t *Token) Generate() (string, error)

Generate an SSH token.

func (*Token) Verify

func (t *Token) Verify(token string) (string, error)

Verify an SSH token.

type Verifier added in v2.9.0

type Verifier = ssh.Verifier

Verifier is an alias of ssh.Verifier.

Jump to

Keyboard shortcuts

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