Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func DeleteUser(us *User)
 - func FingerprintSHA1Hex(pubKey ssh.PublicKey) string
 - func FingerprintSHA256Hex(pubKey ssh.PublicKey) string
 - func GeneratePrivateKey() ([]byte, error)
 - func ListUsers() (userList []string)
 - func ParseDims(b []byte) (uint32, uint32)
 - func RandomString(length int) (string, error)
 - func RegisterChannelCallbacks(user *User, chans <-chan ssh.NewChannel, log logger.Logger, ...) error
 - func SendRequest(req ssh.Request, sshChan ssh.Channel) (bool, error)
 - type ChannelHandler
 - type ChannelOpenDirectMsg
 - type PtyReq
 - type RemoteForwardRequest
 - type ShellStruct
 - type TimeoutConn
 - type User
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ErrNilServerConnection = errors.New("The server connection was nil for the client")
    
      View Source
      
  
var Version string
    Functions ¶
func DeleteUser ¶
func DeleteUser(us *User)
func FingerprintSHA1Hex ¶
func FingerprintSHA256Hex ¶
func GeneratePrivateKey ¶
func RandomString ¶
func RegisterChannelCallbacks ¶
func RegisterChannelCallbacks(user *User, chans <-chan ssh.NewChannel, log logger.Logger, handlers map[string]ChannelHandler) error
Types ¶
type ChannelHandler ¶
type ChannelHandler func(user *User, newChannel ssh.NewChannel, log logger.Logger)
type ChannelOpenDirectMsg ¶
type PtyReq ¶
func ParsePtyReq ¶
type RemoteForwardRequest ¶
type ShellStruct ¶ added in v1.0.8
type ShellStruct struct {
	Cmd string
}
    type TimeoutConn ¶
type User ¶
type User struct {
	// This is the users connection to the server itself, creates new channels and whatnot. NOT to get io.Copy'd
	ServerConnection ssh.Conn
	Pty *PtyReq
	ShellRequests <-chan *ssh.Request
	// Remote forwards sent by user
	SupportedRemoteForwards map[RemoteForwardRequest]bool //(set)
	// So we can capture details about who is currently using the rssh server
	ConnectionDetails string
}
     Click to show internal directories. 
   Click to hide internal directories.