Versions in this module Expand all Collapse all v0 v0.4.3 Dec 11, 2024 v0.4.2 Oct 16, 2023 Changes in this version type Session + Duration time.Duration v0.4.1 Oct 11, 2023 Changes in this version type Server + ForwardClose func(*Session, string) v0.4.0 Oct 11, 2023 Changes in this version + func KeyboardChallenge(comm io.ReadWriter, user, instruction string, questions []string, echos []bool) ([]string, error) + func StringCallback(comm io.ReadWriter, prompt string, hide bool) (string, error) + type Remote struct + Address string + Description string + Names []string + Username string + func DefaultInteractive(comm io.ReadWriter, session *Session) (*Remote, error) + type Server struct + Authenticator func(ssh.ConnMetadata, ssh.PublicKey) (*User, error) + ConnectionTimeout time.Duration + Dialer func(network, address string) (net.Conn, error) + Interactive func(io.ReadWriter, *Session) (*Remote, error) + OnlyProxyJump bool + Selected func(*Session, string) error + Setup func(*Session) error + UsernamePrompt func(io.ReadWriter, *Session) (string, error) + func New(signers []ssh.Signer, ...) *Server + func (s *Server) ChannelForward(session *Session, newChannel ssh.NewChannel) + func (s *Server) HandleConn(c net.Conn) + func (s *Server) Serve(l net.Listener) error + func (s *Server) SessionForward(session *Session, newChannel ssh.NewChannel) + type Session struct + Conn *ssh.ServerConn + PublicKey ssh.PublicKey + Remotes []*Remote + User *User + type User struct + Name string + PublicKey ssh.PublicKey