Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHostKeyFile = "~/.ssh/id_rsa"
DefaultHostKeyFile is default SSH key path
View Source
var UserConfigTypeNone = "none"
UserConfigTypeNone is constant
View Source
var UserConfigTypePublicKey = "public-key"
UserConfigTypePublicKey is constant
View Source
var UserConfigTypeUsername = "username"
UserConfigTypeUsername is constant
View Source
var UserConfigTypes = []string{UserConfigTypePublicKey, UserConfigTypeUsername, UserConfigTypeNone}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port uint Address string IdleTimeout time.Duration MaxTimeout time.Duration ExecutableBinary string HostKeyFile string MaxSessions uint UserConfigType string ColorsDir string }
Config is config struct
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is server struct
func (*Server) ListenAndServe ¶
ListenAndServe starts the server
Click to show internal directories.
Click to hide internal directories.