Documentation ¶
Index ¶
- type Session
- func (session *Session) ClientConfig(user string) *ssh.ClientConfig
- func (session *Session) Close()
- func (session *Session) Connect(serverAddr, user string) error
- func (session *Session) ForwardAgent() error
- func (session *Session) ForwardLocalPort(localPort, remotePort int) error
- func (session *Session) Output(cmd string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { Session *ssh.Session Client *ssh.Client // contains filtered or unexported fields }
func NewSession ¶
func (*Session) ClientConfig ¶
func (session *Session) ClientConfig(user string) *ssh.ClientConfig
func (*Session) ForwardAgent ¶
func (*Session) ForwardLocalPort ¶
Click to show internal directories.
Click to hide internal directories.