package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev
# Functions
AuthorizedKeyFingerprint returns fingerprint from public key in authorized key format.
CryptoPublicKey extracts public key from RSA public key in authorized_keys format.
Fingerprint returns SSH RFC4716 fingerprint of the key.
ForwardRequest is a helper for forwarding a request across a session or channel.
ForwardRequests forwards all ssh requests received from the given channel until the channel or context is closed.
GetCheckers returns public keys that can be used to check cert authorities.
GetSigners returns SSH signers for the provided authority.
MarshalAuthorizedKeysFormat returns the certificate authority public key exported as a single line that can be placed in ~/.ssh/authorized_keys file.
MarshalKnownHost returns the certificate authority public key exported as a single line that can be placed in ~/.ssh/known_hosts.
NewConnectionContext creates a new ConnectionContext and a child context.Context instance which will be canceled when the ConnectionContext is closed.
No description provided by the author
NewSigner returns new ssh Signer from private key + certificate pair.
No description provided by the author
PrivateKeyFingerprint returns fingerprint of the public key extracted from the PEM encoded private key.
No description provided by the author
SetClock sets the server's clock.
No description provided by the author
SetConnectionContextClock sets the connection context's internal clock.
No description provided by the author
SetIngressReporter sets the reporter for reporting new and active connections.
SetInsecureSkipHostValidation does not validate the host signers to make sure they are a valid certificate.
No description provided by the author
No description provided by the author
SetLogger sets the logger for the server.
No description provided by the author
No description provided by the author
No description provided by the author
SetShutdownPollPeriod sets a polling period for graceful shutdowns of SSH servers.
No description provided by the author
SetTracerProvider sets the tracer provider for the server.
UnmarshalKnownHosts returns a list of authorized hosts from the given known_hosts file.
ValidateSigners returns a list of signers that could be used to sign keys.
# Constants
AgentForwardRequest is SSH agent request.
AuthAgentRequest is a request to a SSH client to open an agent channel.
EnvRequest is a request to set an environment variable.
ExecRequest is a request to run a command.
MaxVersionStringBytes is the maximum number of bytes allowed for a SSH version string https://tools.ietf.org/html/rfc4253.
PTYRequest is a request for PTY.
PuTTYSimpleRequest is a PuTTY-specific channel name which it automatically requests when it proxies connections.
PuTTYWinadjRequest is a PuTTY-specific channel name which it automatically requests to measure window size on active connections, expecting a failure response from the server.
SessionEnvVar is environment variable for SSH session.
ShellRequest is a request for a shell.
SSHVersionPrefix is the prefix of "server version" string which begins every SSH handshake.
SubsystemRequest is a request to run a subsystem.
WindowChangeRequest is a request to change window.
X11ChannelRequest is the type of an X11 forwarding channel.
X11ForwardRequest is a request to initiate X11 forwarding.
# Structs
No description provided by the author
ClusterDetails specifies information about a cluster.
ConnectionContext manages connection-level state.
No description provided by the author
EnvReqParams are parameters for env request.
ExecReq specifies parameters for a "exec" request.
KnownHost is a structural representation of a known hosts entry for a Teleport host.
LegacySHA1Signer always forces use of SHA-1 for signing.
PTYReqParams specifies parameters for pty change window.
Server is a generic implementation of an SSH server.
SubsystemReq specifies the parameters for a "subsystem" request.
WinChangeReqParams specifies parameters for window changes.
# Interfaces
No description provided by the author
NewConnHandler is called once per incoming connection.
RequestForwarder represents a resource capable of sending an ssh request such as an ssh.Channel or ssh.Session.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServerOption is a functional argument for server.
TCPIPForwardDialer represents a dialer used to handle TCPIP forward requests.