Documentation ¶
Index ¶
- Constants
- Variables
- type Server
- func (srv *Server) AddHostKey(hk crypto.Signer)
- func (srv *Server) AddHostKeyFile(fn string) error
- func (srv *Server) AddHostKeyFiles(dir string) error
- func (srv *Server) Error(ctx interface{}, args ...interface{})
- func (srv *Server) Errorf(ctx interface{}, s string, args ...interface{})
- func (srv *Server) Errorln(ctx interface{}, args ...interface{})
- func (srv *Server) Printf(ctx interface{}, s string, args ...interface{})
- func (srv *Server) Println(ctx interface{}, args ...interface{})
- func (srv *Server) Serve(ln net.Listener) error
- func (srv *Server) SetDefaults() error
- func (srv *Server) Shutdown(ctx context.Context) error
Constants ¶
View Source
const Version = "v0.0.0"
Variables ¶
View Source
var (
ContextKeyUserData = &contextKey{"user-data"}
)
View Source
var ErrServerClosed = ssh.ErrServerClosed
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Addr string // TCP address to listen on, ":22" if empty Version string // server version to be sent before the initial handshake IdleTimeout time.Duration // connection timeout when no activity, none if empty MaxTimeout time.Duration // absolute connection timeout, none if empty PasswordAuthentication bool // Allow password authentication ChallengeResponseAuthentication bool // Allow challenge-response authentication Logger *log.Logger Config config.Config // contains filtered or unexported fields }
func (*Server) AddHostKeyFile ¶
func (*Server) AddHostKeyFiles ¶
Click to show internal directories.
Click to hide internal directories.