Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attempt ¶
Attempt holds an ssh attempt, either through a public key or through username and password
type ID ¶
type ID []byte
ID wraps an ssh.SessionID for better ecoding
func (ID) MarshalJSON ¶
MarshalJSON turns it into a hex string
type JSONKey ¶
JSONKey is a wrapper around an ssh key that is more json friendly
func (JSONKey) MarshalJSON ¶
MarshalJSON turns the key into something usable
type SlosshSession ¶
type SlosshSession struct { SessionID ID IP net.IP ClientVersion string Attempts []Attempt Start time.Time Finish time.Time // contains filtered or unexported fields }
SlosshSession captures information about a session
func NewSession ¶
func NewSession(l zerolog.Logger, key ssh.Signer) *SlosshSession
NewSession initializes a session
func (*SlosshSession) Config ¶
func (s *SlosshSession) Config() *ssh.ServerConfig
Config returns an ssh config that will feed information into the session
Click to show internal directories.
Click to hide internal directories.