sshutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TOFUHostKeyCallback

func TOFUHostKeyCallback() ssh.HostKeyCallback

TOFUHostKeyCallback returns an ssh.HostKeyCallback implementing a Trust-On-First-Use (TOFU) pattern for SSH host key verification. On first connection to a host, the key is recorded in a holodeck-specific known_hosts file at $CACHE/holodeck/known_hosts (where $CACHE is os.UserCacheDir). On subsequent connections the stored key is compared and a mismatch — indicating a potential MITM attack — is rejected with an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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