package
4.1.1+incompatible
Repository: https://github.com/eiso/go-git.git
Documentation: pkg.go.dev

# Functions

NewClient creates a new SSH client with an optional *ssh.ClientConfig.
NewKnownHostsCallback returns ssh.HostKeyCallback based on a file based on a known_hosts file.
NewPublicKeys returns a PublicKeys from a PEM encoded private key.
NewPublicKeysFromFile returns a PublicKeys from a file containing a PEM encoded private key.
NewSSHAgentAuth returns a PublicKeysCallback based on a SSH agent, it opens a pipe with the SSH agent and uses the pipe as the implementer of the public key callback function.

# Constants

No description provided by the author
No description provided by the author
The names of the AuthMethod implementations.
The names of the AuthMethod implementations.
The names of the AuthMethod implementations.
The names of the AuthMethod implementations.
The names of the AuthMethod implementations.

# Variables

DefaultAuthBuilder is the function used to create a default AuthMethod, when the user doesn't provide any.
DefaultClient is the default SSH client.
DefaultSSHConfig is the reader used to access parameters stored in the system's ssh_config files.

# Structs

HostKeyCallbackHelper is a helper that provides common functionality to configure HostKeyCallback into a ssh.ClientConfig.
KeyboardInteractive implements AuthMethod by using a prompt/response sequence controlled by the server.
Password implements AuthMethod by using the given password.
PasswordCallback implements AuthMethod by using a callback to fetch the password.
PublicKeys implements AuthMethod by using the given key pairs.
PublicKeysCallback implements AuthMethod by asking a ssh.agent.Agent to act as a signer.

# Interfaces

AuthMethod is the interface all auth methods for the ssh client must implement.