Documentation
¶
Overview ¶
Package auth builds the SSH authentication method chain used when dialing.
Priority order:
- SSH agent ($SSH_AUTH_SOCK)
- Private key files (~/.ssh/ned_id_ed25519, id_ed25519, id_rsa, id_ecdsa)
- 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.
Click to show internal directories.
Click to hide internal directories.