Documentation ¶
Index ¶
- Constants
- func HandleAuthLogCallback(conn ssh.ConnMetadata, method string, err error)
- func HandlePublicKeyCallback(conn ssh.ConnMetadata, key ssh.PublicKey) (perm *ssh.Permissions, err error)
- func HandleServerConn(conn ssh.ConnMetadata, chans <-chan ssh.NewChannel)
- func NewServer() (err error)
- func ParseTerminalDims(b []byte) (uint32, uint32)
- type Session
Constants ¶
View Source
const (
// The default place to store and look for host keys
HostKeysDir = "/etc/ssh"
)
Variables ¶
This section is empty.
Functions ¶
func HandleAuthLogCallback ¶
func HandleAuthLogCallback(conn ssh.ConnMetadata, method string, err error)
Log all authentication attempts
func HandlePublicKeyCallback ¶
func HandlePublicKeyCallback(conn ssh.ConnMetadata, key ssh.PublicKey) (perm *ssh.Permissions, err error)
func HandleServerConn ¶
func HandleServerConn(conn ssh.ConnMetadata, chans <-chan ssh.NewChannel)
func ParseTerminalDims ¶
Types ¶
type Session ¶
type Session struct { // SSH Conn Meta Data Conn ssh.ConnMetadata // Win Size WinH uint16 WinW uint16 // contains filtered or unexported fields }
func (*Session) HandleChannelRequest ¶
func (*Session) HandleNewTerminal ¶
Click to show internal directories.
Click to hide internal directories.