Documentation
¶
Index ¶
- Constants
- Variables
- func CreateSocket(name string) (s net.Listener, finalName string, err error)
- func HostKeyCallback(hostname string, remote net.Addr, key ssh.PublicKey, ui UI) error
- func ReadControlPacket(r io.Reader) (msgNum byte, payload []byte, err error)
- func ReplaceSSHAuthSockEnv(env []string, newVal string) (newEnv []string, err error)
- func RunSSHCommand(cmd SSHCommand) error
- func UserRuntimeDir() string
- func UserTempDir() string
- func WriteControlPacket(w io.Writer, msgNum byte, payload []byte) error
- type Agent
- type AgentCExtensionMsg
- type AgentFailureMsg
- type AgentForwardingNoticeMsg
- type AllowedCommands
- type AskPassUI
- type CloseWriter
- type CommonOptions
- type CustomConn
- type ExecutionApprovedMessage
- type ExecutionDeniedMessage
- type ExecutionRequestMessage
- type FancyTerminalUI
- type HandoffCompleteMessage
- type HandoffFailedMessage
- type InputType
- type Policy
- type Prompt
- type SSHCommand
- type SSHFwd
- type Scope
- type Store
- func (store *Store) AllowAll(scope Scope) (err error)
- func (store *Store) AllowCommand(scope Scope, cmd string) (err error)
- func (store *Store) AreAllAllowed(scope Scope) bool
- func (store *Store) IsAllowed(scope Scope, cmd string) bool
- func (store *Store) MarshalJSON() ([]byte, error)
- func (store *Store) Save() (err error)
- func (store *Store) UnmarshalJSON(b []byte) error
- type UI
Constants ¶
View Source
const ( Terminal = iota Display )
View Source
const AgentGuardExtensionType = "[email protected]"
View Source
const AgentGuardSockName = ".agent-guard-sock"
View Source
const MaxAgentPacketSize = 10 * 1024
View Source
const MsgAgentCExtension = 27
View Source
const MsgAgentFailure = 5
View Source
const MsgAgentForwardingNotice = 206
View Source
const MsgAgentSuccess = 6
View Source
const MsgExecutionApproved = 3
View Source
const MsgExecutionDenied = 2
View Source
const MsgExecutionRequest = 1
View Source
const MsgHandoffComplete = 10
View Source
const MsgHandoffFailed = 11
Variables ¶
View Source
var Version string
Functions ¶
func HostKeyCallback ¶
func ReadControlPacket ¶
func ReplaceSSHAuthSockEnv ¶
func UserRuntimeDir ¶
func UserRuntimeDir() string
func UserTempDir ¶
func UserTempDir() string
Types ¶
type AgentCExtensionMsg ¶
type AgentFailureMsg ¶
type AgentFailureMsg struct{}
type AgentForwardingNoticeMsg ¶
type AgentForwardingNoticeMsg struct {
Client string
}
type AllowedCommands ¶
type CloseWriter ¶
type CloseWriter interface {
CloseWrite() error
}
type CommonOptions ¶
type CommonOptions struct { Debug bool `long:"debug" description:"Show debug information"` Username string `short:"l" description:"Specifies the user to log in as on the remote machine"` LogFile string `long:"log" description:"log file"` Version bool `long:"version" short:"V" description:"Display the version number and exit"` }
type CustomConn ¶
type CustomConn struct { net.Conn RemoteAddress net.Addr // contains filtered or unexported fields }
func (*CustomConn) BytesRead ¶
func (cc *CustomConn) BytesRead() int
func (*CustomConn) BytesWritten ¶
func (cc *CustomConn) BytesWritten() int
func (*CustomConn) RemoteAddr ¶
func (cc *CustomConn) RemoteAddr() net.Addr
type ExecutionApprovedMessage ¶
type ExecutionApprovedMessage struct { }
type ExecutionDeniedMessage ¶
type ExecutionDeniedMessage struct {
Reason string
}
type ExecutionRequestMessage ¶
type FancyTerminalUI ¶
type FancyTerminalUI struct {
// contains filtered or unexported fields
}
func (*FancyTerminalUI) Alert ¶
func (tui *FancyTerminalUI) Alert(msg string)
func (*FancyTerminalUI) AskPassword ¶
func (tui *FancyTerminalUI) AskPassword(msg string) (string, error)
func (*FancyTerminalUI) Confirm ¶
func (tui *FancyTerminalUI) Confirm(msg string) bool
func (*FancyTerminalUI) Inform ¶
func (tui *FancyTerminalUI) Inform(msg string)
type HandoffCompleteMessage ¶
type HandoffCompleteMessage struct {
NextTransportByte uint32
}
type HandoffFailedMessage ¶
type HandoffFailedMessage struct {
Msg string
}
type SSHCommand ¶
type SSHFwd ¶
type SSHFwd struct { SSHProgram string SSHArgs []string Host string RemoteReadableName string RemoteStubName string // contains filtered or unexported fields }
func (*SSHFwd) SetupForwarding ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AreAllAllowed ¶
func (*Store) MarshalJSON ¶
func (*Store) UnmarshalJSON ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.