auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package auth builds the SSH authentication method chain used when dialing.

Priority order:

  1. SSH agent ($SSH_AUTH_SOCK)
  2. Private key files (~/.ssh/ned_id_ed25519, id_ed25519, id_rsa, id_ecdsa)
  3. Interactive password prompt (characters hidden via x/term)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Methods

func Methods(user, identityFile string) []ssh.AuthMethod

Methods assembles SSH auth methods for the given user. If identityFile is non-empty it is tried first, before the defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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