package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Packages

Package agent implements a client to an ssh-agent daemon.
Package terminal provides support functions for dealing with terminals, as commonly found on UNIX systems.
This package contains integration tests for the golang.org/x/crypto/ssh package.

# Functions

Dial starts a client connection to the given SSH server.
DiscardRequests consumes and rejects all requests from the passed-in channel.
KeyboardInteractive returns a AuthMethod using a prompt/response sequence controlled by the server.
Marshal serializes the message in msg to SSH wire format.
MarshalAuthorizedKey serializes key for inclusion in an OpenSSH authorized_keys file.
NewCertSigner returns a Signer that signs with the given Certificate, whose private key is held by signer.
NewClient creates a Client on top of the given connection.
NewClientConn establishes an authenticated SSH connection using c as the underlying transport.
NewPublicKey takes an *rsa.PublicKey, *dsa.PublicKey, *ecdsa.PublicKey or any other crypto.Signer and returns a corresponding Signer instance.
NewServerConn starts a new SSH server with c as the underlying transport.
NewSignerFromKey takes an *rsa.PrivateKey, *dsa.PrivateKey, *ecdsa.PrivateKey or any other crypto.Signer and returns a corresponding Signer instance.
NewSignerFromSigner takes any crypto.Signer implementation and returns a corresponding Signer interface.
ParseAuthorizedKeys parses a public key from an authorized_keys file used in OpenSSH according to the sshd(8) manual page.
ParseDSAPrivateKey returns a DSA private key from its ASN.1 DER encoding, as specified by the OpenSSL DSA man page.
ParsePrivateKey returns a Signer from a PEM encoded private key.
ParsePublicKey parses an SSH public key formatted for use in the SSH wire protocol according to RFC 4253, section 6.6.
ParseRawPrivateKey returns a private key from a PEM encoded private key.
Password returns an AuthMethod using the given password.
PasswordCallback returns an AuthMethod that uses a callback for fetching a password.
PublicKeys returns an AuthMethod that uses the given key pairs.
PublicKeysCallback returns an AuthMethod that runs the given function to obtain a list of key pairs.
Unmarshal parses data in SSH wire format into a structure.

# Constants

These constants from [PROTOCOL.certkeys] represent the algorithm names for certificate types supported by this package.
These constants from [PROTOCOL.certkeys] represent the algorithm names for certificate types supported by this package.
These constants from [PROTOCOL.certkeys] represent the algorithm names for certificate types supported by this package.
These constants from [PROTOCOL.certkeys] represent the algorithm names for certificate types supported by this package.
These constants from [PROTOCOL.certkeys] represent the algorithm names for certificate types supported by this package.
CertTimeInfinity can be used for OpenSSHCertV01.ValidBefore to indicate that a certificate does not expire.
No description provided by the author
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
Certificate types distinguish between host and user certificates.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
These constants represent the algorithm names for key types supported by this package.
These constants represent the algorithm names for key types supported by this package.
These constants represent the algorithm names for key types supported by this package.
These constants represent the algorithm names for key types supported by this package.
These constants represent the algorithm names for key types supported by this package.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
No description provided by the author
No description provided by the author
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX signals as listed in RFC 4254 Section 6.10.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
No description provided by the author
Certificate types distinguish between host and user certificates.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.
POSIX terminal mode flags as listed in RFC 4254 Section 8.

# Structs

CertChecker does the work of verifying a certificate.
An Certificate represents an OpenSSH certificate as defined in [PROTOCOL.certkeys]?rev=1.8.
Client implements a traditional SSH client that supports shells, subprocesses, port forwarding and tunneled dialing.
A ClientConfig structure is used to configure a Client.
Config contains configuration data common to both ServerConfig and ClientConfig.
An ExitError reports unsuccessful completion of a remote command.
OpenChannelError is returned if the other side rejects an OpenChannel request.
The Permissions type holds fine-grained permissions that are specific to a user or a specific authentication method for a user.
Request is a request sent outside of the normal stream of data.
ServerConfig holds server specific configuration data.
ServerConn is an authenticated SSH connection, as seen from the server.
A Session represents a connection to a remote command or shell.
Signature represents a cryptographic signature.
Waitmsg stores the information about an exited remote command as reported by Wait.

# Interfaces

An AuthMethod represents an instance of an RFC 4252 authentication method.
A Channel is an ordered, reliable, flow-controlled, duplex stream that is multiplexed over an SSH connection.
Conn represents an SSH connection for both server and client roles.
ConnMetadata holds metadata for the connection.
NewChannel represents an incoming request to a channel.
PublicKey is an abstraction of different types of public keys.
A Signer can create signatures that verify against a public key.

# Type aliases

KeyboardInteractiveChallenge should print questions, optionally disabling echoing (e.g.
RejectionReason is an enumeration used when rejecting channel creation requests.
No description provided by the author
No description provided by the author