sshd

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthResultFunc func(success bool, fingerprint, remoteAddr string)

AuthResultFunc, when set, is called with the outcome of every public-key authentication attempt, the key's SHA256 fingerprint and the client address. The agent wires it to report attempts to the knot servers; a client offering several keys produces one call per key.

Functions

func GenerateEd25519PrivateKey

func GenerateEd25519PrivateKey() (string, error)

func ListenAndServe

func ListenAndServe(port int, privateKeyPEM string)

func SetShell

func SetShell(shell string)

func SftpHandler

func SftpHandler(sess ssh.Session)

SftpHandler handler for SFTP subsystem

func UpdateAuthorizedKeys

func UpdateAuthorizedKeys(keys []string, githubUsernames []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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