Documentation
¶
Index ¶
- func AgentAuth() (ssh.AuthMethod, error)
- func BastionRunClient(bClient *SSHClient) *ssh.Client
- func SSHAgent() (ssh.AuthMethod, error)
- func SSHBastionLogin(bClient *SSHClient, client *SSHClient)
- func SSHKeyAuth(priv *SSHKey) (ssh.AuthMethod, error)
- func SSHLogin(client *SSHClient)
- func SSHRunCommand(client *SSHClient)
- type SSHClient
- type SSHKey
- type SSHOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentAuth ¶
func AgentAuth() (ssh.AuthMethod, error)
func BastionRunClient ¶
func SSHAgent ¶
func SSHAgent() (ssh.AuthMethod, error)
func SSHBastionLogin ¶
func SSHKeyAuth ¶
func SSHKeyAuth(priv *SSHKey) (ssh.AuthMethod, error)
func SSHRunCommand ¶
func SSHRunCommand(client *SSHClient)
Types ¶
type SSHClient ¶
type SSHClient struct { Instance api.Ec2Instance ClientConf *ssh.ClientConfig SSHOpts *SSHOpts SshClient *ssh.Client SshSession *ssh.Session }
func NewSSHClient ¶
func NewSSHClient(inst api.Ec2Instance, opts *SSHOpts) *SSHClient
func (*SSHClient) ForwardAuthSock ¶
func (client *SSHClient) ForwardAuthSock()
func (*SSHClient) InteractiveSession ¶
func (client *SSHClient) InteractiveSession()
Click to show internal directories.
Click to hide internal directories.