Versions in this module Expand all Collapse all v11 v11.3.4 Dec 14, 2022 v11.3.3 Dec 13, 2022 Changes in this version + const ConnectionTypeRequest + const ProxyHelloSignature + func AsAuthMethod(sshCert *ssh.Certificate, signer crypto.Signer) (ssh.AuthMethod, error) + func HostKeyCallback(caCerts [][]byte, withHostKeyFallback bool) (ssh.HostKeyCallback, error) + func IsSSHCertType(val string) bool + func KeysEqual(ak, bk ssh.PublicKey) bool + func MakeRealHostCert(realCA ssh.Signer) (ssh.Signer, error) + func MakeSpoofedHostCert(realCA ssh.Signer) (ssh.Signer, error) + func MakeTestSSHCA() (ssh.Signer, error) + func NewHostKeyCallback(conf HostKeyCallbackConfig) (ssh.HostKeyCallback, error) + func ParseAuthorizedKeys(authorizedKeys [][]byte) ([]ssh.PublicKey, error) + func ParseCertificate(buf []byte) (*ssh.Certificate, error) + func ParseKnownHosts(knownHosts [][]byte) ([]ssh.PublicKey, error) + func ProxyClientSSHConfig(sshCert *ssh.Certificate, priv crypto.Signer, sshCAs ...[]byte) (*ssh.ClientConfig, error) + func SSHSigner(sshCert *ssh.Certificate, signer crypto.Signer) (ssh.Signer, error) + type CertChecker struct + FIPS bool + OnCheckCert func(*ssh.Certificate) + func (c *CertChecker) Authenticate(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) + func (c *CertChecker) CheckCert(principal string, cert *ssh.Certificate) error + func (c *CertChecker) CheckHostKey(addr string, remote net.Addr, key ssh.PublicKey) error + type ChConn struct + func ConnectProxyTransport(sconn ssh.Conn, req *DialReq, exclusive bool) (conn *ChConn, invalid bool, err error) + func NewChConn(conn Conn, ch ssh.Channel) *ChConn + func NewExclusiveChConn(conn Conn, ch ssh.Channel) *ChConn + func (c *ChConn) Close() error + func (c *ChConn) LocalAddr() net.Addr + func (c *ChConn) Read(data []byte) (int, error) + func (c *ChConn) RemoteAddr() net.Addr + func (c *ChConn) SetDeadline(t time.Time) error + func (c *ChConn) SetReadDeadline(t time.Time) error + func (c *ChConn) SetWriteDeadline(t time.Time) error + type CheckersGetter func() ([]ssh.PublicKey, error) + type Conn interface + LocalAddr func() net.Addr + RemoteAddr func() net.Addr + type DialReq struct + Address string + ConnType types.TunnelType + ServerID string + func (d *DialReq) CheckAndSetDefaults() error + type HandshakePayload struct + ClientAddr string + TracingContext map[string]string + type HostKeyCallbackConfig struct + Clock clockwork.Clock + FIPS bool + GetHostCheckers CheckersGetter + HostKeyFallback ssh.HostKeyCallback + OnCheckCert func(*ssh.Certificate) + func (c *HostKeyCallbackConfig) Check() error