sshconfig

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package sshconfig keeps ssh crypto and peer client settings consistent across the application.

Index

Constants

View Source
const PeerUser = "peer"

PeerUser is the reserved username peer nodes authenticate with.

Variables

This section is empty.

Functions

func ApplySSHCryptoConfig

func ApplySSHCryptoConfig(config *ssh.Config)

ApplySSHCryptoConfig removes insecure key exchanges, ciphers, and MACs from the default lists.

func CheckPinnedHostKey

func CheckPinnedHostKey(pinned ssh.PublicKey) ssh.HostKeyCallback

CheckPinnedHostKey accepts the remote host key when it, or the key embedded in its certificate, matches the pinned public key. Peer nodes have host certificates signed by their own certificate authority which the dialing node does not necessarily trust, so the key itself is pinned.

func NewPeerClientConfig

func NewPeerClientConfig(signer ssh.Signer, pinnedHostKey ssh.PublicKey) *ssh.ClientConfig

NewPeerClientConfig builds the ssh client config used to authenticate to another node as a peer, with the hardened crypto settings applied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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