bastion

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	IP      *net.IP
	Ssh     *ssh.ClientConfig
	Client  *ssh.Client
	Session *ssh.Session
	Port    int
	User    string
}

func New

func New(ip string, port int, key []byte, user string) *Host

func (*Host) Bastion

func (h *Host) Bastion(b *Host) error

func (*Host) Close

func (h *Host) Close()

func (*Host) Connect

func (h *Host) Connect() error

func (*Host) Reconnect

func (h *Host) Reconnect()

func (*Host) Run

func (h *Host) Run(commands []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL