Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Idx int ChannelIdx int Conn *ssh.ServerConn Chans <-chan ssh.NewChannel Reqs <-chan *ssh.Request Server *Server Pty, Tty *os.File Config *ClientConfig ClientID string }
func NewClient ¶
func NewClient(conn *ssh.ServerConn, chans <-chan ssh.NewChannel, reqs <-chan *ssh.Request, server *Server) *Client
func (*Client) HandleChannel ¶
func (c *Client) HandleChannel(newChannel ssh.NewChannel) error
func (*Client) HandleChannelRequests ¶
func (*Client) HandleChannels ¶
func (*Client) HandleRequests ¶
type ClientConfig ¶
type ClientConfig struct { ContainerName string `json:"image-name,omitempty"` RemoteUser string `json:"remote-user,omitempty"` Env envhelper.Environment `json:"env,omitempty"` Command []string `json:"command,omitempty"` DockerRunArgs []string `json:"docker-run-args,omitempty"` DockerExecArgs []string `json:"docker-exec-args,omitempty"` User string `json:"user,omitempty"` Keys []string `json:"keys,omitempty"` AuthenticationMethod string `json:"authentication-method,omitempty"` AuthenticationComment string `json:"authentication-coment,omitempty"` EntryPoint string `json:"entrypoint,omitempty"` AuthenticationAttempts int `json:"authentication-attempts,omitempty"` Allowed bool `json:"allowed,omitempty"` IsLocal bool `json:"is-local,omitempty"` UseTTY bool `json:"use-tty,omitempty"` }
type Server ¶
type Server struct { SshConfig *ssh.ServerConfig ClientConfigs map[string]*ClientConfig DefaultShell string DockerContainer string DockerExecArgs string Banner string User string Password string // contains filtered or unexported fields }
func (*Server) AddHostKey ¶
Click to show internal directories.
Click to hide internal directories.