ssh

package
v0.0.0-...-703198c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package ssh serves git-upload-pack and git-receive-pack over SSH. Public-key auth resolves the user via store.UserBySSHFingerprint and threads it into the receive context for hooks to name in RSL annotations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, addr string, hostKey gssh.Signer, st *store.Store, gst *gitstore.Store, hf HooksFactory, limits receive.Limits) error

Serve listens on addr and handles git-over-SSH sessions until ctx is cancelled. hostKey is the server's private host key.

Types

type HooksFactory

type HooksFactory func() receive.Hooks

HooksFactory returns a fresh Hooks instance per push, since some hook implementations hold per-push state (the flock handle).

Jump to

Keyboard shortcuts

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