sshkeyfw

package module
v0.0.0-...-feedfcc Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 7 Imported by: 0

README

sshkeyfw

Go library for making ssh connections while forwarding ssh keys

Generate ssh-agent using private key and execute specified command on target host while performing key agent forward.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHKeyfw

type SSHKeyfw struct {
	Insecure   bool   `default:"true"`
	PrivateKey []byte `default:""`
	// contains filtered or unexported fields
}

func (*SSHKeyfw) Close

func (s *SSHKeyfw) Close()

Close connection

func (*SSHKeyfw) Connect

func (s *SSHKeyfw) Connect(target, user string) error

Connect Generate ssh-agent using the specified private key, perform agent forward and connect to the specified host

func (*SSHKeyfw) Run

func (s *SSHKeyfw) Run(cmd string, outW, errW io.Writer, inR io.Reader) error

Run command

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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