package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev
# Functions
CheckXAuthPath checks if xauth is runnable in the current environment.
forwardIO forwards io between two XServer connections until one of the connections is closed.
GetXDisplay retrieves and validates the local XServer display set in the environment variable $DISPLAY.
NewFakeXAuthEntry creates a fake xauth entry with a randomly generated MIT-MAGIC-COOKIE-1.
NewXAuthCommand reate a new "xauth" command.
OpenNewXServerListener opens an XServerListener for the first available Display.
ParseDisplay parses the given display value and returns the host, display number, and screen number, or a parsing error.
ReadAndRewriteXAuthPacket reads the initial xauth packet from an XServer request.
RequestForwarding sends an "x11-req" to the server to set up X11 forwarding for the given session.
ServeChannelRequests opens an X11 channel handler and starts a goroutine to serve any channels received with the handler provided.
# Constants
DefaultDisplayOffset is the default display offset when searching for an open XServer unix socket.
DefaultMaxDisplays is the default maximum number of displays supported when searching for an open XServer unix socket.
DisplayEnv is an environment variable used to determine what local display should be connected to during X11 forwarding.
MaxDisplay is the theoretical max display value which X Clients and serverwill be able to parse into a unix socket.
# Structs
ChannelRequestPayload according to http://www.ietf.org/rfc/rfc4254.txt.
Display is an XServer display.
ForwardRequestPayload according to http://www.ietf.org/rfc/rfc4254.txt.
ServerConfig is a server configuration for X11 forwarding.
XAuthCommand is a os/exec.Cmd wrapper for running xauth commands.
XAuthEntry is an entry in an XAuthority database which can be used to authenticate and authorize requests from an XServer to the associated X display.
# Interfaces
XServerConn is a connection to an XServer through a direct or forwarded connection.
XServerListener is a proxy XServer listener used to forward XServer requests.