package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Packages
Package ppk provides functions implementing conversion between Teleport's native RSA keypairs and PuTTY's PPK format.
# Functions
AsAuthMethod returns an "auth method" interface, a common abstraction used by Golang SSH library.
ConnectProxyTransport opens a channel over the remote tunnel and connects to the requested host.
DiscardChannelData discards all data received from an ssh channel in the background.
HostKeyCallback returns an ssh.HostKeyCallback that validates host keys/certs against trusted host keys, usually associated with trusted CAs.
HostNameMatch returns whether at least one of the given hosts matches one of the given matchHosts.
IsSSHCertType checks if the given string looks like an ssh cert type.
KeysEqual is constant time compare of the keys to avoid timing attacks.
MakeRealHostCert makes an SSH host certificate that is signed by the provided CA.
MakeRealHostCertWithKey makes an SSH host certificate with the provided key that is signed by the provided CA.
MakeRealHostCertWithPrincipals makes an SSH host certificate that is signed by the provided CA for the provided principals.
MakeSpoofedHostCert makes an SSH host certificate that claims to be signed by the provided CA but in fact is signed by a different CA.
MakeTestSSHCA generates a new SSH certificate authority for tests.
NewChConn returns a new net.Conn implemented over SSH channel.
NewExclusiveChConn returns a new net.Conn implemented over SSH channel, whenever this connection closes.
NewHostKeyCallback returns host key callback function with the specified parameters.
ParseAuthorizedKeys parses provided authorized_keys entries into ssh.PublicKey list.
ParseCertificate parses an SSH certificate from the authorized_keys format.
ParseKnownHosts parses provided known_hosts entries into ssh.PublicKey list.
ProxyClientSSHConfig returns an ssh.ClientConfig from the given ssh.AuthMethod.
RunSSH runs a command on an SSH server and returns the output.
SSHSigner returns an ssh.Signer from certificate and private key.
WithDialer connects to an SSH server with a custom dialer.
# Constants
ConnectionTypeRequest is a request sent over a SSH channel that returns a boolean which indicates the connection type (direct or tunnel).
# Structs
CertChecker is a drop-in replacement for ssh.CertChecker.
ChConn is a net.Conn like object that uses SSH channel.
DialReq is a request for the address to connect to.
HandshakePayload structure is sent as a JSON blob by the teleport proxy to every SSH server who identifies itself as Teleport server
It allows teleport proxies to communicate additional data to server.
HostKeyCallbackConfig is the host key callback configuration.
# Interfaces
ChannelReadWriter represents the data streams of an ssh.Channel-like object.
No description provided by the author
# Type aliases
CheckersGetter defines a function that returns a list of ssh public keys.
RunSSHOption allows setting options as functional arguments to RunSSH.