Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + const AgentForwardRequest + const AuthAgentRequest + const EnvRequest + const ExecRequest + const MaxVersionStringBytes + const PTYRequest + const PuTTYSimpleRequest + const SSHVersionPrefix + const SessionEnvVar + const ShellRequest + const SubsystemRequest + const TrueClientAddrVar + const WindowChangeRequest + const X11ChannelRequest + const X11ForwardRequest + func AuthorizedKeyFingerprint(publicKey []byte) (string, error) + func CryptoPublicKey(publicKey []byte) (crypto.PublicKey, error) + func Fingerprint(key ssh.PublicKey) string + func ForwardRequest(ctx context.Context, sender RequestForwarder, req *ssh.Request) (bool, error) + func ForwardRequests(ctx context.Context, sin <-chan *ssh.Request, sender RequestForwarder) error + func GetCheckers(ca types.CertAuthority) ([]ssh.PublicKey, error) + func GetSigners(ca types.CertAuthority) ([]ssh.Signer, error) + func MarshalAuthorizedHostsFormat(clusterName string, keyBytes []byte, logins []string) (string, error) + func MarshalAuthorizedKeysFormat(clusterName string, keyBytes []byte) (string, error) + func NewSigner(keyBytes, certBytes []byte) (ssh.Signer, error) + func PrivateKeyFingerprint(keyBytes []byte) (string, error) + func ValidateSigners(ca types.CertAuthority) error + type AuthMethods struct + NoClient bool + Password PasswordFunc + PublicKey PublicKeyFunc + type ClusterDetails struct + FIPSEnabled bool + RecordingProxy bool + type ConnectionContext struct + NetConn net.Conn + ServerConn *ssh.ServerConn + func NewConnectionContext(ctx context.Context, nconn net.Conn, sconn *ssh.ServerConn, ...) (context.Context, *ConnectionContext) + func (c *ConnectionContext) AddCloser(closer io.Closer) + func (c *ConnectionContext) Close() error + func (c *ConnectionContext) GetClientLastActive() time.Time + func (c *ConnectionContext) GetEnv(key string) (string, bool) + func (c *ConnectionContext) GetForwardAgent() bool + func (c *ConnectionContext) IncrSessions(max int64) (decr func(), ok bool) + func (c *ConnectionContext) SetEnv(key, val string) + func (c *ConnectionContext) SetForwardAgent(forwardAgent bool) + func (c *ConnectionContext) StartAgentChannel() (teleagent.Agent, error) + func (c *ConnectionContext) UpdateClientActivity() + func (c *ConnectionContext) VisitEnv(visit func(key, val string)) + type ConnectionContextOption func(c *ConnectionContext) + func SetConnectionContextClock(clock clockwork.Clock) ConnectionContextOption + type DirectTCPIPReq struct + Host string + Orig string + OrigPort uint32 + Port uint32 + func ParseDirectTCPIPReq(data []byte) (*DirectTCPIPReq, error) + type EnvReqParams struct + Name string + Value string + type ExecReq struct + Command string + type LegacySHA1Signer struct + Signer ssh.AlgorithmSigner + func (s *LegacySHA1Signer) PublicKey() ssh.PublicKey + func (s *LegacySHA1Signer) Sign(rand io.Reader, data []byte) (*ssh.Signature, error) + type NewChanHandler interface + HandleNewChan func(context.Context, *ConnectionContext, ssh.NewChannel) + type NewChanHandlerFunc func(context.Context, *ConnectionContext, ssh.NewChannel) + func (f NewChanHandlerFunc) HandleNewChan(ctx context.Context, ccx *ConnectionContext, ch ssh.NewChannel) + type NewConnHandler interface + HandleNewConn func(ctx context.Context, ccx *ConnectionContext) (context.Context, error) + type PTYReqParams struct + Env string + H uint32 + Hpx uint32 + Modes string + W uint32 + Wpx uint32 + func (p *PTYReqParams) Check() error + func (p *PTYReqParams) CheckAndSetDefaults() error + func (p *PTYReqParams) TerminalModes() (ssh.TerminalModes, error) + type PasswordFunc func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error) + type PublicKeyFunc func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) + type RequestForwarder interface + SendRequest func(ctx context.Context, name string, wantReply bool, payload []byte) (bool, error) + type RequestHandler interface + HandleRequest func(ctx context.Context, r *ssh.Request) + type Server struct + func NewServer(component string, a utils.NetAddr, h NewChanHandler, hostSigners []ssh.Signer, ...) (*Server, error) + func (s *Server) Addr() string + func (s *Server) Close() error + func (s *Server) HandleConnection(conn net.Conn) + func (s *Server) Serve(listener net.Listener) error + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + func (s *Server) Wait(ctx context.Context) + type ServerOption func(cfg *Server) error + func SetCiphers(ciphers []string) ServerOption + func SetClock(clock clockwork.Clock) ServerOption + func SetFIPS(fips bool) ServerOption + func SetInsecureSkipHostValidation() ServerOption + func SetKEXAlgorithms(kexAlgorithms []string) ServerOption + func SetLimiter(limiter *limiter.Limiter) ServerOption + func SetLogger(logger logrus.FieldLogger) ServerOption + func SetMACAlgorithms(macAlgorithms []string) ServerOption + func SetNewConnHandler(handler NewConnHandler) ServerOption + func SetRequestHandler(req RequestHandler) ServerOption + func SetSSHConfig(cfg ssh.ServerConfig) ServerOption + func SetShutdownPollPeriod(period time.Duration) ServerOption + func SetTracerProvider(provider oteltrace.TracerProvider) ServerOption + type SubsystemReq struct + Name string + type WinChangeReqParams struct + H uint32 + Hpx uint32 + W uint32 + Wpx uint32 Other modules containing this package github.com/zmb3/teleport