Documentation
¶
Overview ¶
Package sshx provides shared SSH helper utilities used across pgtransfer.
It intentionally depends only on the standard library and golang.org/x/crypto so that it can be imported from any package without introducing import cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthMethods ¶
func BuildAuthMethods(cfg Config) ([]ssh.AuthMethod, error)
BuildAuthMethods constructs the ordered list of SSH authentication methods. It always prefers the ssh-agent (when SSH_AUTH_SOCK is set), then an explicit private key, and finally password authentication.
func ReadPrivateKey ¶
ReadPrivateKey reads an SSH private key file from disk.
Types ¶
Click to show internal directories.
Click to hide internal directories.