Documentation ¶
Index ¶
Constants ¶
View Source
const (
GostSSHTunnelRequest = "gost-tunnel" // extended request type for ssh tunnel
)
Variables ¶
View Source
var (
ErrSessionDead = errors.New("session is dead")
)
Functions ¶
func NewClientConn ¶
Types ¶
type ClientConn ¶
a dummy ssh client conn used by client connector
func (*ClientConn) Client ¶
func (c *ClientConn) Client() *ssh.Client
type PasswordCallbackFunc ¶
type PasswordCallbackFunc func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
PasswordCallbackFunc is a callback function used by SSH server. It authenticates user using a password.
func PasswordCallback ¶
func PasswordCallback(au auth.Authenticator) PasswordCallbackFunc
type PublicKeyCallbackFunc ¶
type PublicKeyCallbackFunc func(c ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error)
PublicKeyCallbackFunc is a callback function used by SSH server. It offers a public key for authentication.
func PublicKeyCallback ¶
func PublicKeyCallback(keys map[string]bool) PublicKeyCallbackFunc
Click to show internal directories.
Click to hide internal directories.